Class JFieldDecl
- java.lang.Object
-
- com.inductiveautomation.snap.javatree.JNode
-
- com.inductiveautomation.snap.javatree.JMemberDecl
-
- com.inductiveautomation.snap.javatree.JFieldDecl
-
public class JFieldDecl extends JMemberDecl
A JMember for Field declarations.
-
-
Constructor Summary
Constructors Constructor Description JFieldDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNodeString()Returns the part name.JTypegetType()Returns the field type.JVariableDeclgetVariableDeclInside(java.lang.String aName)Returns a variable with given name.java.util.List<JVariableDecl>getVariableDecls()Returns the VariableDecls.voidsetType(JType aType)Sets the field type.-
Methods inherited from class com.inductiveautomation.snap.javatree.JMemberDecl
getDeclaringClass, getIdentifier, getModifiers, getNameImpl, getSuperMember, getSuperMemberImpl, getTypeParameter, getTypeParameters, setIdentifier, setModifiers
-
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, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
-
-
-
Method Detail
-
getType
public JType getType()
Returns the field type.
-
setType
public void setType(JType aType)
Sets the field type.
-
getVariableDecls
public java.util.List<JVariableDecl> getVariableDecls()
Returns the VariableDecls.
-
getVariableDeclInside
public JVariableDecl getVariableDeclInside(java.lang.String aName)
Returns a variable with given name.- Overrides:
getVariableDeclInsidein classJNode
-
getNodeString
public java.lang.String getNodeString()
Returns the part name.- Overrides:
getNodeStringin classJNode
-
-