public class JExprMath extends JExpr
Modifier and Type | Class and Description |
---|---|
static class |
JExprMath.Op |
JExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
Modifier and Type | Field and Description |
---|---|
JExprMath.Op |
op |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildChildren()
Add operands to children.
|
protected java.lang.String |
getClassNameImpl()
Returns the class name for expression.
|
java.lang.String |
getNodeString()
Returns the part name.
|
JExprMath.Op |
getOp()
Returns the op.
|
JExpr |
getOperand(int anIndex)
Returns the specified operand.
|
int |
getOperandCount()
Returns the operand count.
|
void |
setOperand(JExpr anExpr,
int anIndex)
Sets the specified operand.
|
getParentClassRef, getParentExpr
addChild, 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
public JExprMath.Op op
public JExprMath()
public JExprMath(JExprMath.Op anOp, JExpr aFirst)
public JExprMath(JExprMath.Op anOp, JExpr aFirst, JExpr aSecond)
public JExprMath.Op getOp()
public int getOperandCount()
public JExpr getOperand(int anIndex)
public void setOperand(JExpr anExpr, int anIndex)
protected java.lang.String getClassNameImpl()
getClassNameImpl
in class JNode
public java.lang.String getNodeString()
getNodeString
in class JNode
protected void buildChildren()
buildChildren
in class JNode