Class JExprChain
- java.lang.Object
- 
- com.inductiveautomation.snap.javatree.JNode
- 
- com.inductiveautomation.snap.javatree.JExpr
- 
- com.inductiveautomation.snap.javatree.JExprChain
 
 
 
- 
 public class JExprChain extends JExpr A class to represent a chain of expressions.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.snap.javatree.JExprJExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
 
- 
 - 
Constructor SummaryConstructors Constructor Description JExprChain()Creates a new JExprChain.JExprChain(JExpr... theExpressions)Creates a new JExprChain for given parts.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExpr(JExpr anExpr)Adds a expression to this JExprChain.protected voidbuildChildren()Initializes children list by adding children from IVars.protected java.lang.StringgetClassNameImpl()Tries to resolve the class name for this node.JExprgetExpr(int anIndex)Returns the individual expression at given index.intgetExprCount()Returns the number of expressions.java.util.List<JExpr>getExpressions()Returns the expressions list.protected java.lang.StringgetNameImpl()Returns the name for Identifier or Method.java.lang.StringgetNodeString()Returns the part name.JExprremoveExpr(int anIndex)Removes a expression at given index.- 
Methods inherited from class com.inductiveautomation.snap.javatree.JExprgetParentClassRef, getParentExpr
 - 
Methods inherited from class com.inductiveautomation.snap.javatree.JNodeaddChild, 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 Detail- 
JExprChainpublic JExprChain() Creates a new JExprChain.
 - 
JExprChainpublic JExprChain(JExpr... theExpressions) Creates a new JExprChain for given parts.
 
- 
 - 
Method Detail- 
getNameImplprotected java.lang.String getNameImpl() Returns the name for Identifier or Method.- Overrides:
- getNameImplin class- JNode
 
 - 
getExprCountpublic int getExprCount() Returns the number of expressions.
 - 
getExprpublic JExpr getExpr(int anIndex) Returns the individual expression at given index.
 - 
getExpressionspublic java.util.List<JExpr> getExpressions() Returns the expressions list.
 - 
addExprpublic void addExpr(JExpr anExpr) Adds a expression to this JExprChain.
 - 
removeExprpublic JExpr removeExpr(int anIndex) Removes a expression at given index.
 - 
getClassNameImplprotected java.lang.String getClassNameImpl() Tries to resolve the class name for this node.- Overrides:
- getClassNameImplin class- JNode
 
 - 
buildChildrenprotected void buildChildren() Initializes children list by adding children from IVars.- Overrides:
- buildChildrenin class- JNode
 
 - 
getNodeStringpublic java.lang.String getNodeString() Returns the part name.- Overrides:
- getNodeStringin class- JNode
 
 
- 
 
-