org.fife.rsta.ac.java.rjc.ast
Class EnumDeclaration
java.lang.Object
org.fife.rsta.ac.java.rjc.ast.AbstractTypeDeclarationNode
org.fife.rsta.ac.java.rjc.ast.EnumDeclaration
- All Implemented Interfaces:
- ASTNode, TypeDeclaration, TypeDeclarationContainer
public class EnumDeclaration
- extends AbstractTypeDeclarationNode
| Methods inherited from class org.fife.rsta.ac.java.rjc.ast.AbstractTypeDeclarationNode |
addMember, addTypeDeclaration, getBodyContainsOffset, getBodyEndOffset, getBodyStartOffset, getChildType, getChildTypeAtOffset, getChildTypeCount, getDocComment, getFieldIterator, getMember, getMemberCount, getMemberIterator, getMethodIterator, getMethodsByName, getModifiers, getPackage, isDeprecated, setBodyEndOffset, setBodyStartOffset, setDeprecated, setDocComment, setModifiers, setPackage, toString |
EnumDeclaration
public EnumDeclaration(Scanner s,
int offs,
String name)
getTypeString
public String getTypeString()
getName
public 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. For
CodeBlocks
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.
- Specified by:
getName in interface ASTNode
- Returns:
- The "name" of this node.
getNameEndOffset
public int getNameEndOffset()
- Returns the end offset of the "name" of this node.
- Specified by:
getNameEndOffset in interface ASTNode
- Returns:
- The end offset.
getNameStartOffset
public int getNameStartOffset()
- Returns the start offset of the "name" of this node.
- Specified by:
getNameStartOffset in interface ASTNode
- Returns:
- The start offset.
setDeclarationEndOffset
public void setDeclarationEndOffset(Offset end)
setDeclarationOffsets
protected void setDeclarationOffsets(Offset start,
Offset end)
- Sets the start and end offsets of this node.
- Parameters:
start - The start offset.end - The end offset.
Copyright © 2003-2011. All Rights Reserved.