public class Constant extends AbstractExpression
root
Constructor and Description |
---|
Constant(Expression root,
java.lang.Object value)
Constructor.
|
Constant(java.lang.Object value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval()
Evaluate the expression.
|
java.lang.String |
getExpressionName()
Return the expression name.
|
Variable |
getVariable(java.lang.String varName)
Return null.
|
java.util.Map<java.lang.String,Variable> |
getVariables()
Return an empty Map.
|
getRoot, setRoot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpression, getVariable, getVariables, hasVariable, hasVariable
public Constant(java.lang.Object value)
value
- the valuepublic Constant(Expression root, java.lang.Object value)
root
- the root expressionvalue
- the valuepublic java.lang.String getExpressionName()
Expression
public java.util.Map<java.lang.String,Variable> getVariables()
public Variable getVariable(java.lang.String varName)
varName
- the variable namepublic java.lang.Object eval()
Expression
Copyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence