public abstract class AbstractUnaryExpression extends AbstractExpression implements UnaryExpression
Modifier and Type | Field and Description |
---|---|
protected Expression |
expr
The enclosed expression.
|
root
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.
|
getRoot, setRoot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setExpression
eval, getExpression, getExpressionName, getRoot, getVariable, getVariable, getVariables, hasVariable, hasVariable
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 © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence