public abstract class AbstractUnaryExpression extends AbstractExpression implements UnaryExpression
Modifier and Type | Field and Description |
---|---|
protected Expression |
expr
The enclosed expression.
|
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 |
---|
AbstractUnaryExpression(Expression root) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Variable> |
getVariables()
Return the variables used by this expression.
|
clone, evalAsBoolean, evalAsFloat, evalAsInt, getParentBlock, getRoot, setParentBlock, setRoot
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpression, setExpression
clone, eval, evalAsBoolean, evalAsFloat, evalAsInt, getExpressionName, getLocalVariable, getLocalVariables, getParentBlock, getResultStructure, getResultType, getRoot, getVariable, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlock
protected Expression expr
public AbstractUnaryExpression(Expression root)
public java.util.Map<java.lang.String,Variable> getVariables()
Expression
int c=a+b
, only "a" and "b" will be returned.getVariables
in interface Expression
Copyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence