public abstract class AbstractExprFunction extends AbstractExpression implements MultipleAryExpression
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Expression> |
exprs |
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 |
---|
AbstractExprFunction(Expression root) |
Modifier and Type | Method and Description |
---|---|
void |
addExpression(Expression expr) |
java.util.List<Expression> |
getExpressions() |
java.util.Map<java.lang.String,Variable> |
getVariables()
Return the variables used by this expression.
|
void |
setExpressions(java.util.List<Expression> exprs) |
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, getResultStructure, getResultType, getRoot, getVariable, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlock
protected java.util.List<Expression> exprs
public AbstractExprFunction(Expression root)
public void addExpression(Expression expr) throws java.lang.Exception
addExpression
in interface MultipleAryExpression
java.lang.Exception
public void setExpressions(java.util.List<Expression> exprs)
setExpressions
in interface MultipleAryExpression
public java.util.List<Expression> getExpressions()
getExpressions
in interface MultipleAryExpression
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