|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jexl2.ReadonlyContext
public final class ReadonlyContext
A readonly context wrapper.
| Constructor Summary | |
|---|---|
ReadonlyContext(JexlContext context)
Creates a new readonly context. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String name)
Gets the value of a variable. |
boolean |
has(java.lang.String name)
Checks whether a variable is defined in this context. |
void |
set(java.lang.String name,
java.lang.Object value)
Will throw an UnsupportedOperationException when called; the JexlEngine deals with it appropriately. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadonlyContext(JexlContext context)
context - the wrapped context| Method Detail |
|---|
public java.lang.Object get(java.lang.String name)
get in interface JexlContextname - the variable's name
public void set(java.lang.String name,
java.lang.Object value)
set in interface JexlContextname - the unused variable namevalue - the unused variable valuepublic boolean has(java.lang.String name)
A variable may be defined with a null value; this method checks whether the value is null or if the variable is undefined.
has in interface JexlContextname - the variable's name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||