public class StandardEvaluationContext extends Object implements EvaluationContext
| Modifier and Type | Field and Description |
|---|---|
private EvaluatorState |
evaluatorState |
private ParameterLookup |
parameterLookup |
private Map<String,String> |
stateMap |
private ValueLookup |
valueLookup |
| Constructor and Description |
|---|
StandardEvaluationContext(Map<String,String> variables) |
StandardEvaluationContext(Map<String,String> variables,
Map<String,String> stateMap,
ParameterLookup parameterLookup) |
StandardEvaluationContext(ValueLookup valueLookup,
Map<String,String> stateMap,
ParameterLookup parameterLookup) |
| Modifier and Type | Method and Description |
|---|---|
EvaluatorState |
getEvaluatorState() |
Set<String> |
getExpressionKeys()
Returns the names of all attributes, variables, etc.
|
String |
getExpressionValue(String name)
Returns the name of an attribute, variable, environment variable, or system variable that can be referenced in the Expression Language
|
Parameter |
getParameter(String parameterName) |
String |
getState(String key) |
private final ValueLookup valueLookup
private final ParameterLookup parameterLookup
private final EvaluatorState evaluatorState
public StandardEvaluationContext(Map<String,String> variables, Map<String,String> stateMap, ParameterLookup parameterLookup)
public StandardEvaluationContext(ValueLookup valueLookup, Map<String,String> stateMap, ParameterLookup parameterLookup)
public String getExpressionValue(String name)
EvaluationContextgetExpressionValue in interface EvaluationContextname - the name of the attribute, variable, etc.null if no such value existspublic Set<String> getExpressionKeys()
EvaluationContextgetExpressionKeys in interface EvaluationContextpublic String getState(String key)
getState in interface EvaluationContextpublic Parameter getParameter(String parameterName)
getParameter in interface EvaluationContextpublic EvaluatorState getEvaluatorState()
getEvaluatorState in interface EvaluationContextCopyright © 2022 Apache NiFi Project. All rights reserved.