@OpenApiAll
public class ExpressionContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_METACLASS |
static java.lang.String |
EXPRESSION_SOURCE |
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.
|
(package private) java.util.Map<java.lang.String,java.lang.Object> |
getContent()
Gets the content of this context.
|
java.util.Set<java.lang.String> |
getKeys()
Context keys.
|
(package private) ExpressionContext |
getParent()
Gets the parent of this context.
|
Project |
getProject()
Get project - identical to
get(PROJECT) . |
public static final java.lang.String THIS
public static final java.lang.String PROJECT
public static final java.lang.String CONTEXT_METACLASS
public static final java.lang.String EXPRESSION_SOURCE
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()
public Project getProject()
get(PROJECT)
.public java.util.Set<java.lang.String> getKeys()
@CheckForNull ExpressionContext getParent()
java.util.Map<java.lang.String,java.lang.Object> getContent()