public class EnumDeclaration extends AbstractTypeDeclarationNode
| Constructor and Description |
|---|
EnumDeclaration(Scanner s,
int offs,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getTypeString() |
void |
setDeclarationEndOffset(Offset end) |
protected void |
setDeclarationOffsets(Offset start,
Offset end)
Sets the start and end offsets of this node.
|
addMember, addTypeDeclaration, getBodyContainsOffset, getBodyEndOffset, getBodyStartOffset, getChildType, getChildTypeAtOffset, getChildTypeCount, getDocComment, getFieldIterator, getMember, getMemberCount, getMemberIterator, getMethodIterator, getMethodsByName, getModifiers, getName, getPackage, getParentType, isDeprecated, isStatic, setBodyEndOffset, setBodyStartOffset, setDeprecated, setDocComment, setModifiers, setPackage, setParentType, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetNameEndOffset, getNameStartOffsetpublic EnumDeclaration(Scanner s, int offs, java.lang.String name)
public java.lang.String getTypeString()
public java.lang.String getName()
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.
public int getNameEndOffset()
getNameEndOffset in interface ASTNodepublic int getNameStartOffset()
getNameStartOffset in interface ASTNodepublic void setDeclarationEndOffset(Offset end)