|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EvaluationContext
Contains important information about the current expression evaluation.
The EvaluationContext stores all of the functions and constants that are
bound and can be referenced by any expression. Everything is a
first-class object in the evaluation context including functions,
variables, etc. To bind an identifier to a value, see the set(java.lang.String, java.lang.Object)
method. To get the value of an identifier, see the get(java.lang.String)
method.
Method Summary | |
---|---|
Object |
get(String identifier)
Gets the value of the specified identifier. |
Map |
getAll()
Returns a Map of all bound identifiers and their values. |
Object |
getProperty(String key)
Gets the specified property. |
Object |
remove(String identifier)
Removes the value of an identifier. |
void |
removeProperty(Object key)
Removes the specified property. |
Object |
set(String identifier,
Object value)
Sets the value of an identifer. |
void |
setProperty(String key,
Object value)
Sets the specified property to the given value. |
Method Detail |
---|
Object get(String identifier)
identifier
- The identifier for the value.
Map getAll()
Object set(String identifier, Object value)
identifier
- The identifier for the value.value
- The value for the identifier.
value
object.Object remove(String identifier)
identifier
- The identifier whose value should be removed.
null
if there was
no value.void setProperty(String key, Object value)
key
- The name of the property.value
- The value of the property.Object getProperty(String key)
key
- The name of the property.
void removeProperty(Object key)
key
- The name of the property to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |