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, setRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpression, getVariable, getVariables, hasVariable, hasVariablepublic 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()
Expressionpublic java.util.Map<java.lang.String,Variable> getVariables()
public Variable getVariable(java.lang.String varName)
varName - the variable namepublic java.lang.Object eval()
ExpressionCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence