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)
EvaluationContext
getExpressionValue
in interface EvaluationContext
name
- the name of the attribute, variable, etc.null
if no such value existspublic Set<String> getExpressionKeys()
EvaluationContext
getExpressionKeys
in interface EvaluationContext
public String getState(String key)
getState
in interface EvaluationContext
public Parameter getParameter(String parameterName)
getParameter
in interface EvaluationContext
public EvaluatorState getEvaluatorState()
getEvaluatorState
in interface EvaluationContext
Copyright © 2019 Apache NiFi Project. All rights reserved.