| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDocComment() |
Modifiers |
getModifiers() |
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() |
Type |
getType() |
boolean |
isDeprecated() |
boolean |
isStatic()
Shortcut for
getModifiers().isStatic(); useful since
getModifiers() may return null. |
void |
setParentTypeDeclaration(TypeDeclaration dec) |
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()
Type getType()
boolean isDeprecated()
boolean isStatic()
getModifiers().isStatic(); useful since
getModifiers() may return null.getModifiers()void setParentTypeDeclaration(TypeDeclaration dec)