public class VariableScopeContext extends Object implements VariableContext
VariableContext
interface backed
by a VariableScope
.Modifier and Type | Field and Description |
---|---|
protected VariableScope |
variableScope |
Constructor and Description |
---|
VariableScopeContext(VariableScope variableScope) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsVariable(String variableName)
Checks whether a variable with the given name is resolve through this context.
|
Set<String> |
keySet() |
TypedValue |
resolve(String variableName)
Resolve a value in this context.
|
static VariableScopeContext |
wrap(VariableScope variableScope) |
protected final VariableScope variableScope
public VariableScopeContext(VariableScope variableScope)
public TypedValue resolve(String variableName)
VariableContext
resolve
in interface VariableContext
variableName
- the name of the variable to resolve.public boolean containsVariable(String variableName)
VariableContext
containsVariable
in interface VariableContext
variableName
- the name of the variable to checkpublic Set<String> keySet()
keySet
in interface VariableContext
public static VariableScopeContext wrap(VariableScope variableScope)
Copyright © 2022. All rights reserved.