public interface EvaluationContext
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CONFIGURATION |
static String |
PROPERTY_CONNECTION |
static String |
PROPERTY_EXPRESSION_LANGUAGE |
| Modifier and Type | Method and Description |
|---|---|
void |
declare(ResolverDeclaration resolverDeclaration)
Allows defining a resolver declaration in this context.
|
void |
define(String variable,
Object value)
Allows defining a variable in this context.
|
void |
defineProperty(String property,
Object value)
Allows defining a property in this context.
|
Optional<EvaluationContext> |
getGlobalEvaluationContext()
Get the global evaluation context for this context.
|
Map<String,Object> |
getVariables()
Gets all the variables defined in this context.
|
Object |
resolve(String expression)
Evaluates an expression in this context and get it's result.
|
ResolverDeclaration |
resolveDeclaration(String declarationName)
Gets a resolver declaration from this evaluation context.
|
Object |
resolveProperty(String property)
Get a the value of a property declared in this context by name.
|
static final String PROPERTY_CONFIGURATION
static final String PROPERTY_CONNECTION
static final String PROPERTY_EXPRESSION_LANGUAGE
Object resolve(String expression)
expression - The expression to evaluate.Object resolveProperty(String property)
property - The name of the property in this context.void defineProperty(String property, Object value)
property - The name of the property to define.value - The value of the property.void define(String variable, Object value)
variable - The name of the variable to define.value - The value of the variable.ResolverDeclaration resolveDeclaration(String declarationName)
declarationName - The declared name of the resolver.void declare(ResolverDeclaration resolverDeclaration)
resolverDeclaration - The resolver declaration to define in this context.Map<String,Object> getVariables()
Optional<EvaluationContext> getGlobalEvaluationContext()
Copyright © 2024. All rights reserved.