public abstract class AbstractValue extends AbstractExpression implements Value
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected java.lang.Object |
value |
root
Constructor and Description |
---|
AbstractValue() |
AbstractValue(Expression root) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval()
Evaluate the expression.
|
Expression |
getExpression()
Return the equation associated expression.
|
java.lang.String |
getName() |
java.lang.Object |
getValue()
Return the value.
|
void |
setName(java.lang.String name) |
getRoot, setRoot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpressionName, getRoot, getVariable, getVariable, getVariables, getVariables, hasVariable, hasVariable
public AbstractValue()
public AbstractValue(Expression root)
public void setName(java.lang.String name)
public Expression getExpression()
Equation
getExpression
in interface Equation
getExpression
in interface Expression
public java.lang.Object getValue()
Value
public java.lang.Object eval() throws java.lang.ArithmeticException
Expression
eval
in interface Expression
java.lang.ArithmeticException
Copyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence