|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.expr.eval.ExpressionContext
public class ExpressionContext
Context used for expression evaluations. The context is primarily used to store the names of variables with their values.
| Field Summary | |
|---|---|
protected Map<String,ExpressionValue> |
variableValues
Maps variable names to their values. |
| Constructor Summary | |
|---|---|
ExpressionContext()
Default constructor. |
|
ExpressionContext(Map<String,ExpressionValue> variableValues)
Construct context from a map of variables. |
|
| Method Summary | |
|---|---|
ExpressionValue |
getVariableValue(String name)
Get value of variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,ExpressionValue> variableValues
| Constructor Detail |
|---|
public ExpressionContext(Map<String,ExpressionValue> variableValues)
variableValues - maps the variable names to their valuespublic ExpressionContext()
| Method Detail |
|---|
public ExpressionValue getVariableValue(String name)
throws ExpressionException
name - variable name
ExpressionException - if variable is undefined
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||