public abstract class AbstractAryExpression extends AbstractExpression implements AryExpression
Modifier and Type | Field and Description |
---|---|
protected Expression |
expr1 |
protected Expression |
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 |
---|
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, 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 Expression expr1
protected Expression expr2
public AbstractAryExpression(Expression root)
public void setExpression1(Expression expr1)
AryExpression
setExpression1
in interface AryExpression
expr1
- the expressionpublic void setExpression2(Expression expr2)
AryExpression
setExpression2
in interface AryExpression
expr2
- the expressionpublic Expression getExpression1()
AryExpression
getExpression1
in interface AryExpression
public Expression getExpression2()
AryExpression
getExpression2
in interface AryExpression
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