| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDocComment()
Returns the doc comment for this member.
|
Modifiers |
getModifiers()
Returns the modifiers of this member.
|
java.lang.String |
getName()
Returns the "name" of this node.
|
int |
getNameEndOffset()
Returns the end offset of the "name" of this node.
|
int |
getNameStartOffset()
Returns the start offset of the "name" of this node.
|
TypeDeclaration |
getParentTypeDeclaration()
Returns the parent type declaration of this member.
|
Type |
getType()
Returns the type of this member.
|
boolean |
isDeprecated()
Returns whether this member is deprecated.
|
boolean |
isStatic()
Shortcut for
getModifiers().isStatic(); useful since
getModifiers() may return null. |
void |
setParentTypeDeclaration(TypeDeclaration dec)
Sets the parent type declaration of this member.
|
java.lang.String getDocComment()
int getNameEndOffset()
ASTNodegetNameEndOffset in interface ASTNodeint getNameStartOffset()
ASTNodegetNameStartOffset in interface ASTNodeModifiers getModifiers()
java.lang.String getName()
ASTNodeCodeBlocks
it will be CodeBlock.NAME.Note that this may not be unique. For example, a class with an overloaded method will have multiple methods with the same "name," just with different signatures.
TypeDeclaration getParentTypeDeclaration()
setParentTypeDeclaration(TypeDeclaration)Type getType()
boolean isDeprecated()
boolean isStatic()
getModifiers().isStatic(); useful since
getModifiers() may return null.getModifiers()void setParentTypeDeclaration(TypeDeclaration dec)
dec - The parent type declaration.getParentTypeDeclaration()