Class AbstractASTNode
java.lang.Object
org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
- All Implemented Interfaces:
ASTNode
- Direct Known Subclasses:
AbstractMember, AbstractTypeDeclarationNode, CompilationUnit, EnumBody, ImportDeclaration, LocalVariable, Package
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractASTNode(String name, Offset start) protectedAbstractASTNode(String name, Offset start, Offset end) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the "name" of this node.intReturns the end offset of the "name" of this node.intReturns the start offset of the "name" of this node.voidprotected voidsetDeclarationOffsets(Offset start, Offset end) Sets the start and end offsets of this node.toString()Returns the name of this node (e.g.
-
Field Details
-
name
-
startOffs
-
endOffs
-
-
Constructor Details
-
AbstractASTNode
-
AbstractASTNode
-
-
Method Details
-
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.
-
getNameEndOffset
public int getNameEndOffset()Returns the end offset of the "name" of this node.- Specified by:
getNameEndOffsetin interfaceASTNode- Returns:
- The end offset.
-
getNameStartOffset
public int getNameStartOffset()Returns the start offset of the "name" of this node.- Specified by:
getNameStartOffsetin interfaceASTNode- Returns:
- The start offset.
-
setDeclarationEndOffset
-
setDeclarationOffsets
-
toString
-