public class JVariableDecl extends JNode
| Modifier and Type | Field and Description |
|---|---|
int |
arrayCount |
java.lang.String |
arrayInitializer |
JIdentifier |
identifier |
JExpr |
initializer |
JType |
type |
| Constructor and Description |
|---|
JVariableDecl() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getClassNameImpl()
Tries to resolve the class name for this node.
|
java.lang.Class |
getDeclaringClass()
Returns the declaring class, if field variable.
|
protected java.lang.String |
getNameImpl()
Resolves the name from identifier.
|
java.util.List<JIdentifier> |
getReferences()
Returns a list of references to this variable.
|
protected void |
getReferences(JNode aPart,
java.lang.String aName,
java.util.List theReferences)
Returns a list of references to given name.
|
JVariableDecl |
getVariableDeclInside(java.lang.String aName)
Returns a variable with given name.
|
addChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, 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, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toStringpublic JType type
public JIdentifier identifier
public int arrayCount
public JExpr initializer
public java.lang.String arrayInitializer
protected java.lang.String getNameImpl()
getNameImpl in class JNodepublic java.lang.Class getDeclaringClass()
protected java.lang.String getClassNameImpl()
getClassNameImpl in class JNodepublic java.util.List<JIdentifier> getReferences()
protected void getReferences(JNode aPart, java.lang.String aName, java.util.List theReferences)
public JVariableDecl getVariableDeclInside(java.lang.String aName)
getVariableDeclInside in class JNode