|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.java.JavaSourceElement
recoder.java.JavaProgramElement
recoder.java.JavaNonTerminalProgramElement
recoder.java.declaration.JavaDeclaration
recoder.java.declaration.VariableDeclaration
recoder.java.declaration.FieldDeclaration
recoder.java.declaration.EnumConstantDeclaration
public class EnumConstantDeclaration
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface recoder.java.ProgramElement |
|---|
ProgramElement.TreeStructure |
| Nested classes/interfaces inherited from interface recoder.java.SourceElement |
|---|
SourceElement.Position |
| Field Summary |
|---|
| Fields inherited from class recoder.java.JavaSourceElement |
|---|
factory |
| Fields inherited from interface recoder.java.ProgramElement |
|---|
STRUCTURAL_EQUALITY, STRUCTURAL_HASH_CODE |
| Constructor Summary | |
|---|---|
|
EnumConstantDeclaration()
|
protected |
EnumConstantDeclaration(EnumConstantDeclaration proto)
|
|
EnumConstantDeclaration(EnumConstantSpecification spec,
ASTList<DeclarationSpecifier> annotations)
|
| Method Summary | |
|---|---|
void |
accept(SourceVisitor v)
Receive a visitor, for instance a pretty printer. |
EnumConstantDeclaration |
deepClone()
Deep clone. |
NonTerminalProgramElement |
getASTParent()
Get AST parent. |
EnumConstantSpecification |
getEnumConstantSpecification()
|
TypeDeclaration |
getMemberParent()
Get member parent. |
EnumDeclaration |
getParent()
|
boolean |
isFinal()
Test whether the declaration is final. |
boolean |
isPrivate()
Test whether the declaration is private. |
boolean |
isProtected()
Test whether the declaration is protected. |
boolean |
isPublic()
Test whether the declaration is public. |
boolean |
isStatic()
Test whether the declaration is static. |
boolean |
isStrictFp()
Test whether the declaration is strict FP. |
void |
setEnumConstantSpecification(EnumConstantSpecification spec)
|
void |
setMemberParent(TypeDeclaration t)
Set member parent. |
void |
validate()
Defaults to do nothing. |
| Methods inherited from class recoder.java.declaration.FieldDeclaration |
|---|
getChildAt, getChildCount, getChildPositionCode, getFieldSpecifications, getVariables, isTransient, makeParentRoleValid, replaceChild, setFieldSpecifications |
| Methods inherited from class recoder.java.declaration.VariableDeclaration |
|---|
getFirstElement, getLastElement, getTypeReference, getTypeReferenceAt, getTypeReferenceCount, setTypeReference |
| Methods inherited from class recoder.java.declaration.JavaDeclaration |
|---|
getAnnotations, getDeclarationSpecifiers, getModifiers, getVisibilityModifier, isAbstract, isNative, isSynchronized, isVolatile, setDeclarationSpecifiers |
| Methods inherited from class recoder.java.JavaNonTerminalProgramElement |
|---|
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll |
| Methods inherited from class recoder.java.JavaProgramElement |
|---|
getComments, getID, setComments |
| Methods inherited from class recoder.java.JavaSourceElement |
|---|
getEndPosition, getFactory, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface recoder.java.Declaration |
|---|
getDeclarationSpecifiers, setDeclarationSpecifiers |
| Methods inherited from interface recoder.java.NonTerminalProgramElement |
|---|
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll |
| Methods inherited from interface recoder.java.ProgramElement |
|---|
getComments, getID, setComments |
| Methods inherited from interface recoder.java.SourceElement |
|---|
getEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource |
| Constructor Detail |
|---|
public EnumConstantDeclaration()
public EnumConstantDeclaration(EnumConstantSpecification spec,
ASTList<DeclarationSpecifier> annotations)
protected EnumConstantDeclaration(EnumConstantDeclaration proto)
proto - | Method Detail |
|---|
public EnumDeclaration getParent()
public void accept(SourceVisitor v)
SourceElement
accept in interface SourceElementaccept in class FieldDeclarationv - a source visitor.public boolean isFinal()
FieldDeclaration
isFinal in class FieldDeclarationpublic boolean isStatic()
FieldDeclaration
isStatic in interface MemberDeclarationisStatic in class FieldDeclarationpublic boolean isPrivate()
FieldDeclaration
isPrivate in interface MemberDeclarationisPrivate in class FieldDeclarationpublic boolean isProtected()
FieldDeclaration
isProtected in interface MemberDeclarationisProtected in class FieldDeclarationpublic boolean isPublic()
FieldDeclaration
isPublic in interface MemberDeclarationisPublic in class FieldDeclarationpublic boolean isStrictFp()
FieldDeclaration
isStrictFp in interface MemberDeclarationisStrictFp in class FieldDeclarationpublic NonTerminalProgramElement getASTParent()
FieldDeclaration
getASTParent in interface ProgramElementgetASTParent in class FieldDeclarationpublic EnumConstantDeclaration deepClone()
FieldDeclaration
deepClone in interface SourceElementdeepClone in class FieldDeclarationpublic EnumConstantSpecification getEnumConstantSpecification()
public void setEnumConstantSpecification(EnumConstantSpecification spec)
spec - public TypeDeclaration getMemberParent()
FieldDeclaration
getMemberParent in interface MemberDeclarationgetMemberParent in class FieldDeclarationpublic void setMemberParent(TypeDeclaration t)
FieldDeclaration
setMemberParent in interface MemberDeclarationsetMemberParent in class FieldDeclarationt - a type declaration.
public void validate()
throws ModelException
JavaProgramElement
validate in interface ModelElementvalidate in class JavaProgramElementModelExceptionSemanticsChecker
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||