public final class ReadonlyContext extends Object implements JexlContext
| Constructor and Description |
|---|
ReadonlyContext(JexlContext context)
Creates a new readonly context.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String name)
Gets the value of a variable.
|
boolean |
has(String name)
Checks whether a variable is defined in this context.
|
void |
set(String name,
Object value)
Will throw an UnsupportedOperationException when called; the JexlEngine deals with it appropriately.
|
public ReadonlyContext(JexlContext context)
context - the wrapped contextpublic Object get(String name)
get in interface JexlContextname - the variable's namepublic void set(String name, Object value)
set in interface JexlContextname - the unused variable namevalue - the unused variable valuepublic boolean has(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 nameCopyright © 2020 Internet2. All rights reserved.