Class JExprMath
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JExpr
com.inductiveautomation.snap.javatree.JExprMath
An class to represent expressions that include an operator (math, logical, etc.).
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class com.inductiveautomation.snap.javatree.JExprJExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new expression.JExprMath(JExprMath.Op anOp, JExpr aFirst) Creates a new expression for given op and LeftHand expression.JExprMath(JExprMath.Op anOp, JExpr aFirst, JExpr aSecond) Creates a new expression for given op and LeftHand/RightHand expressions.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidAdd operands to children.protected StringReturns the class name for expression.Returns the part name.getOp()Returns the op.getOperand(int anIndex) Returns the specified operand.intReturns the operand count.voidsetOperand(JExpr anExpr, int anIndex) Sets the specified operand.Methods inherited from class com.inductiveautomation.snap.javatree.JExprgetParentClassRef, getParentExprMethods 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, 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
- 
Field Details- 
op
 
- 
- 
Constructor Details- 
JExprMathpublic JExprMath()Creates a new expression.
- 
JExprMathCreates a new expression for given op and LeftHand expression.
- 
JExprMathCreates a new expression for given op and LeftHand/RightHand expressions.
 
- 
- 
Method Details- 
getOpReturns the op.
- 
getOperandCountpublic int getOperandCount()Returns the operand count.
- 
getOperandReturns the specified operand.
- 
setOperandSets the specified operand.
- 
getClassNameImplReturns the class name for expression.- Overrides:
- getClassNameImplin class- JNode
 
- 
getNodeStringReturns the part name.- Overrides:
- getNodeStringin class- JNode
 
- 
buildChildrenprotected void buildChildren()Add operands to children.- Overrides:
- buildChildrenin class- JNode
 
 
-