Class JExprMath
- java.lang.Object
- 
- com.inductiveautomation.snap.javatree.JNode
- 
- com.inductiveautomation.snap.javatree.JExpr
- 
- com.inductiveautomation.snap.javatree.JExprMath
 
 
 
- 
 public class JExprMath extends JExpr An class to represent expressions that include an operator (math, logical, etc.).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classJExprMath.Op- 
Nested classes/interfaces inherited from class com.inductiveautomation.snap.javatree.JExprJExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
 
- 
 - 
Field SummaryFields Modifier and Type Field Description JExprMath.Opop
 - 
Constructor SummaryConstructors Constructor Description JExprMath()Creates 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildChildren()Add operands to children.protected java.lang.StringgetClassNameImpl()Returns the class name for expression.java.lang.StringgetNodeString()Returns the part name.JExprMath.OpgetOp()Returns the op.JExprgetOperand(int anIndex)Returns the specified operand.intgetOperandCount()Returns the operand count.voidsetOperand(JExpr anExpr, int anIndex)Sets the specified operand.- 
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, 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 Detail- 
oppublic JExprMath.Op op 
 
- 
 - 
Constructor Detail- 
JExprMathpublic JExprMath() Creates a new expression.
 - 
JExprMathpublic JExprMath(JExprMath.Op anOp, JExpr aFirst) Creates a new expression for given op and LeftHand expression.
 - 
JExprMathpublic JExprMath(JExprMath.Op anOp, JExpr aFirst, JExpr aSecond) Creates a new expression for given op and LeftHand/RightHand expressions.
 
- 
 - 
Method Detail- 
getOppublic JExprMath.Op getOp() Returns the op.
 - 
getOperandCountpublic int getOperandCount() Returns the operand count.
 - 
getOperandpublic JExpr getOperand(int anIndex) Returns the specified operand.
 - 
setOperandpublic void setOperand(JExpr anExpr, int anIndex) Sets the specified operand.
 - 
getClassNameImplprotected java.lang.String getClassNameImpl() Returns the class name for expression.- Overrides:
- getClassNameImplin class- JNode
 
 - 
getNodeStringpublic java.lang.String getNodeString() Returns the part name.- Overrides:
- getNodeStringin class- JNode
 
 - 
buildChildrenprotected void buildChildren() Add operands to children.- Overrides:
- buildChildrenin class- JNode
 
 
- 
 
-