org.modeshape.sequencer.java.metadata
Class MethodMetadata
java.lang.Object
org.modeshape.sequencer.java.metadata.MethodMetadata
- Direct Known Subclasses:
- ConstructorMetadata, MethodTypeMemberMetadata
public abstract class MethodMetadata
- extends Object
Represent the MethodMetadata
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodMetadata
public MethodMetadata()
isContructor
public abstract boolean isContructor()
getAnnotations
public List<AnnotationMetadata> getAnnotations()
getName
public String getName()
- Returns:
- name
setName
public void setName(String name)
- Parameters:
name
- Sets name to the specified value.
getModifiers
public List<ModifierMetadata> getModifiers()
- Returns:
- modifiers
setModifiers
public void setModifiers(List<ModifierMetadata> modifiers)
- Parameters:
modifiers
- Sets modifiers to the specified value.
hasModifierNamed
public boolean hasModifierNamed(String modifierName)
- Parameters:
modifierName
- the name of the modifier to check for
- Returns:
- true if the type has a modifier of that name, otherwise false
getParameters
public List<FieldMetadata> getParameters()
- Returns:
- parameters
setParameters
public void setParameters(List<FieldMetadata> parameters)
- Parameters:
parameters
- Sets parameters to the specified value.
getReturnType
public FieldMetadata getReturnType()
- Returns:
- returnType
setReturnType
public void setReturnType(FieldMetadata returnType)
- Parameters:
returnType
- Sets returnType to the specified value.
getId
public String getId()
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.