public class ExprDivAssignment extends AbstractScalarAssignment
resultValue
isLocal
expr
block, root
STRUCT_ARRAY, STRUCT_SCALAR, STRUCT_STRUCTURE, TYPE_BOOL, TYPE_DYNAMIC, TYPE_FLOAT, TYPE_INTEGER, TYPE_NUMERIC, TYPE_STRING, TYPE_UNDEF
Constructor and Description |
---|
ExprDivAssignment(Expression root) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.lang.Object |
eval()
Evaluate the expression.
|
boolean |
evalAsBoolean()
Evaluate the expression as a boolean.
|
float |
evalAsFloat()
Evaluate the expression as a float.
|
int |
evalAsInt()
Evaluate the expression as an int.
|
java.lang.String |
getExpressionName()
Return the expression name.
|
getExpression, getResult, getResultStructure, getResultType, getVariable, setExpression, setResult, setResult
addLocalVariable, addLocalVariable, addVariable, addVariable, isCreated, isLocal
getVariables
getParentBlock, getRoot, setParentBlock, setRoot
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocalVariable, getLocalVariables, getParentBlock, getRoot, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlock
public ExprDivAssignment(Expression root)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface Expression
clone
in class AbstractExpression
java.lang.CloneNotSupportedException
public int evalAsInt()
Expression
Expression.eval()
, but the evaluation
engine will be able to optimize the computation by knwoing that the result is an int (primitive valeus are cached internally).evalAsInt
in interface Expression
evalAsInt
in class AbstractExpression
public float evalAsFloat()
Expression
Expression.eval()
, but the evaluation
engine will be able to optimize the computation by knwoing that the result is a float (primitive valeus are cached internally).evalAsFloat
in interface Expression
evalAsFloat
in class AbstractExpression
public boolean evalAsBoolean()
Expression
Expression.eval()
, but the evaluation
engine will be able to optimize the computation by knwoing that the result is a boolean (primitive valeus are cached internally).evalAsBoolean
in interface Expression
evalAsBoolean
in class AbstractExpression
public java.lang.Object eval()
Expression
public java.lang.String getExpressionName()
Expression
Copyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence