@OpenApiAll
public class ExpressionContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT |
static java.lang.String |
CONTEXT_METACLASS |
static java.lang.String |
PROJECT |
static java.lang.String |
THIS |
Constructor and Description |
---|
ExpressionContext(ExpressionContext parent)
Constructor.
|
ExpressionContext(Project project)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
add(java.lang.String key,
java.lang.Object value)
Add value to the current context.
|
ExpressionContext |
copy()
Create this context copy.
|
java.lang.Object |
get(java.lang.String key)
Get the value from current context, or parent context if current context has no value.
|
java.util.Set<java.lang.String> |
getKeys()
Context keys.
|
Project |
getProject()
Get project - identical to
get(PROJECT) . |
public static final java.lang.String THIS
public static final java.lang.String CONTEXT
public static final java.lang.String PROJECT
public static final java.lang.String CONTEXT_METACLASS
public ExpressionContext(@CheckForNull ExpressionContext parent)
parent
- parent context.public ExpressionContext(Project project)
project
- project.@CheckForNull public java.lang.Object add(java.lang.String key, @CheckForNull java.lang.Object value)
key
- key.value
- value.@CheckForNull public java.lang.Object get(java.lang.String key)
key
- key.public ExpressionContext copy()
@CheckForNull public Project getProject()
get(PROJECT)
.public java.util.Set<java.lang.String> getKeys()