Class JExprChain
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JExpr
com.inductiveautomation.snap.javatree.JExprChain
A class to represent a chain of expressions.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.snap.javatree.JExpr
JExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new JExprChain.JExprChain
(JExpr... theExpressions) Creates a new JExprChain for given parts. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a expression to this JExprChain.protected void
Initializes children list by adding children from IVars.protected String
Tries to resolve the class name for this node.getExpr
(int anIndex) Returns the individual expression at given index.int
Returns the number of expressions.Returns the expressions list.protected String
Returns the name for Identifier or Method.Returns the part name.removeExpr
(int anIndex) Removes a expression at given index.Methods inherited from class com.inductiveautomation.snap.javatree.JExpr
getParentClassRef, getParentExpr
Methods inherited from class com.inductiveautomation.snap.javatree.JNode
addChild, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, 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, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
Constructor Details
-
JExprChain
public JExprChain()Creates a new JExprChain. -
JExprChain
Creates a new JExprChain for given parts.
-
-
Method Details
-
getNameImpl
Returns the name for Identifier or Method.- Overrides:
getNameImpl
in classJNode
-
getExprCount
public int getExprCount()Returns the number of expressions. -
getExpr
Returns the individual expression at given index. -
getExpressions
Returns the expressions list. -
addExpr
Adds a expression to this JExprChain. -
removeExpr
Removes a expression at given index. -
getClassNameImpl
Tries to resolve the class name for this node.- Overrides:
getClassNameImpl
in classJNode
-
buildChildren
protected void buildChildren()Initializes children list by adding children from IVars.- Overrides:
buildChildren
in classJNode
-
getNodeString
Returns the part name.- Overrides:
getNodeString
in classJNode
-