public abstract class AbstractAryNumericExpression extends AbstractAryExpression
Modifier and Type | Field and Description |
---|---|
protected short |
type |
expr1, expr2
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 |
---|
AbstractAryNumericExpression(Expression root) |
Modifier and Type | Method and Description |
---|---|
short |
getResultStructure()
Return the structure of the result for the expression.
|
short |
getResultType()
Return the type of the result for the expression.
|
getExpression1, getExpression2, getVariables, setExpression1, setExpression2
clone, evalAsBoolean, evalAsFloat, evalAsInt, getParentBlock, getRoot, setParentBlock, setRoot
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, eval, evalAsBoolean, evalAsFloat, evalAsInt, getExpression, getExpressionName, getLocalVariable, getLocalVariables, getParentBlock, getRoot, getVariable, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlock
public AbstractAryNumericExpression(Expression root)
public short getResultType()
Expression
ExpressionType.TYPE_INTEGER
: integerExpressionType.TYPE_FLOAT
: floatExpressionType.TYPE_NUMERIC
: integer or float value. The runtime actual type may depend on the expression argumentsExpressionType.TYPE_STRING
: stringExpressionType.TYPE_DYNAMIC
: dynamic type. The runtime actual type may depend on the expression argumentsExpressionType.TYPE_UNDEF
: undefined type. The default type, characteristic of an error if entountered.public short getResultStructure()
Expression
ExpressionType.STRUCT_SCALAR
: a scalar valueExpressionType.STRUCT_ARRAY
: an array valueCopyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence