public abstract class AbstractAryExpression extends AbstractExpression implements AryExpression
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
expr1 |
protected Expression |
expr2 |
block, rootSTRUCT_ARRAY, STRUCT_SCALAR, STRUCT_STRUCTURE, TYPE_BOOL, TYPE_DYNAMIC, TYPE_FLOAT, TYPE_INTEGER, TYPE_NUMERIC, TYPE_STRING, TYPE_UNDEF| Constructor and Description |
|---|
AbstractAryExpression(Expression root) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getExpression1()
Return the first expression.
|
Expression |
getExpression2()
Return the second expression.
|
java.util.Map<java.lang.String,Variable> |
getVariables()
Return the variables used by this expression.
|
void |
setExpression1(Expression expr1)
Set the first expression.
|
void |
setExpression2(Expression expr2)
Set the second expression.
|
clone, evalAsBoolean, evalAsFloat, evalAsInt, getParentBlock, getRoot, setParentBlock, setRootequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, eval, evalAsBoolean, evalAsFloat, evalAsInt, getExpression, getExpressionName, getLocalVariable, getLocalVariables, getParentBlock, getResultStructure, getResultType, getRoot, getVariable, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlockprotected Expression expr1
protected Expression expr2
public AbstractAryExpression(Expression root)
public void setExpression1(Expression expr1)
AryExpressionsetExpression1 in interface AryExpressionexpr1 - the expressionpublic void setExpression2(Expression expr2)
AryExpressionsetExpression2 in interface AryExpressionexpr2 - the expressionpublic Expression getExpression1()
AryExpressiongetExpression1 in interface AryExpressionpublic Expression getExpression2()
AryExpressiongetExpression2 in interface AryExpressionpublic java.util.Map<java.lang.String,Variable> getVariables()
Expressionint c=a+b, only "a" and "b" will be returned.getVariables in interface ExpressionCopyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence