Package org.fife.rsta.ac.java.rjc.ast
Interface ASTNode
-
- All Known Subinterfaces:
Member,TypeDeclaration
- All Known Implementing Classes:
AbstractASTNode,AbstractMember,AbstractTypeDeclarationNode,CodeBlock,CompilationUnit,EnumBody,EnumDeclaration,Field,FormalParameter,ImportDeclaration,LocalVariable,Method,NormalClassDeclaration,NormalInterfaceDeclaration,Package
public interface ASTNodeA node in a Java AST.- Version:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns 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.
- Returns:
- The "name" of this node.
-
getNameEndOffset
int getNameEndOffset()
Returns the end offset of the "name" of this node.- Returns:
- The end offset.
-
getNameStartOffset
int getNameStartOffset()
Returns the start offset of the "name" of this node.- Returns:
- The start offset.
-
-