Class JEnumConstant
- java.lang.Object
-
- com.inductiveautomation.snap.javatree.JNode
-
- com.inductiveautomation.snap.javatree.JEnumConstant
-
public class JEnumConstant extends JNode
A JNode for Enum constants.
-
-
Constructor Summary
Constructors Constructor Description JEnumConstant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getArguments()
Returns the arguments.java.lang.String
getClassBody()
Returns the class decl.JIdentifier
getIdentifier()
Returns the identifier.int
getModifiers()
Returns the modifiers.protected java.lang.String
getNameImpl()
Resolves name from name identifier, if available.void
setArguments(java.lang.String aString)
Sets the arguments.void
setClassBody(java.lang.String aBody)
Sets the class decl.void
setIdentifier(JIdentifier anId)
Sets the identifier.void
setModifiers(int aValue)
Sets the modifiers.-
Methods inherited from class com.inductiveautomation.snap.javatree.JNode
addChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassNameImpl, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getNodeString, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
-
-
-
Method Detail
-
getModifiers
public int getModifiers()
Returns the modifiers.
-
setModifiers
public void setModifiers(int aValue)
Sets the modifiers.
-
getIdentifier
public JIdentifier getIdentifier()
Returns the identifier.
-
setIdentifier
public void setIdentifier(JIdentifier anId)
Sets the identifier.
-
getArguments
public java.lang.String getArguments()
Returns the arguments.
-
setArguments
public void setArguments(java.lang.String aString)
Sets the arguments.
-
getClassBody
public java.lang.String getClassBody()
Returns the class decl.
-
setClassBody
public void setClassBody(java.lang.String aBody)
Sets the class decl.
-
getNameImpl
protected java.lang.String getNameImpl()
Resolves name from name identifier, if available.- Overrides:
getNameImpl
in classJNode
-
-