Package org.fife.rsta.ac.java.rjc.ast
Interface Member
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDocComment()Returns the doc comment for this member.ModifiersgetModifiers()Returns the modifiers of this member.java.lang.StringgetName()Returns the "name" of this node.intgetNameEndOffset()Returns the end offset of the "name" of this node.intgetNameStartOffset()Returns the start offset of the "name" of this node.TypeDeclarationgetParentTypeDeclaration()Returns the parent type declaration of this member.TypegetType()Returns the type of this member.booleanisDeprecated()Returns whether this member is deprecated.booleanisStatic()Shortcut forgetModifiers().isStatic(); useful sincegetModifiers()may returnnull.voidsetParentTypeDeclaration(TypeDeclaration dec)Sets the parent type declaration of this member.
-
-
-
Method Detail
-
getDocComment
java.lang.String getDocComment()
Returns the doc comment for this member.- Returns:
- This member's doc comment.
-
getNameEndOffset
int getNameEndOffset()
Description copied from interface:ASTNodeReturns the end offset of the "name" of this node.- Specified by:
getNameEndOffsetin interfaceASTNode- Returns:
- The end offset.
-
getNameStartOffset
int getNameStartOffset()
Description copied from interface:ASTNodeReturns the start offset of the "name" of this node.- Specified by:
getNameStartOffsetin interfaceASTNode- Returns:
- The start offset.
-
getModifiers
Modifiers getModifiers()
Returns the modifiers of this member.- Returns:
- The modifiers.
-
getName
java.lang.String getName()
Description copied from interface:ASTNodeReturns the "name" of this node. This will be the name of the method, the name of the member or local variable, etc. ForCodeBlocks it will beCodeBlock.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.
-
getParentTypeDeclaration
TypeDeclaration getParentTypeDeclaration()
Returns the parent type declaration of this member.- Returns:
- The parent type declaration.
- See Also:
setParentTypeDeclaration(TypeDeclaration)
-
getType
Type getType()
Returns the type of this member.- Returns:
- This member's type.
-
isDeprecated
boolean isDeprecated()
Returns whether this member is deprecated.- Returns:
- Whether this member is deprecated.
-
isStatic
boolean isStatic()
Shortcut forgetModifiers().isStatic(); useful sincegetModifiers()may returnnull.- Returns:
- Whether this member is static.
- See Also:
getModifiers()
-
setParentTypeDeclaration
void setParentTypeDeclaration(TypeDeclaration dec)
Sets the parent type declaration of this member.- Parameters:
dec- The parent type declaration.- See Also:
getParentTypeDeclaration()
-
-