Class JExpr.AllocationExpr
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JExpr
com.inductiveautomation.snap.javatree.JExpr.AllocationExpr
- Enclosing class:
- JExpr
A JExpr subclass for Allocation expressions.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.snap.javatree.JExpr
JExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the allocation arguments.Returns the allocation ClassOrInterfaceBodyDeclaration.Returns the allocation JType.protected String
Tries to resolve the class name for this node.Returns the part name.void
setAllocationArguments
(List<JExpr> theArgs) Sets the allocation arguments.void
Sets the allocation ClassOrInterfaceBodyDeclaration.void
setAllocationType
(JType aType) Sets the allocation JType.Methods inherited from class com.inductiveautomation.snap.javatree.JExpr
getParentClassRef, getParentExpr
Methods inherited from class com.inductiveautomation.snap.javatree.JNode
addChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNameImpl, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
Constructor Details
-
AllocationExpr
public AllocationExpr()
-
-
Method Details
-
getAllocationType
Returns the allocation JType. -
setAllocationType
Sets the allocation JType. -
getAllocationArguments
Returns the allocation arguments. -
setAllocationArguments
Sets the allocation arguments. -
getAllocationClassDeclaration
Returns the allocation ClassOrInterfaceBodyDeclaration. -
setAllocationClassDeclaration
Sets the allocation ClassOrInterfaceBodyDeclaration. -
getNodeString
Returns the part name.- Overrides:
getNodeString
in classJNode
-
getClassNameImpl
Tries to resolve the class name for this node.- Overrides:
getClassNameImpl
in classJNode
-