public static final class VariableResolver.ByMap<V> extends Object implements VariableResolver<V>
VariableResolver
backed by a Map
.VariableResolver.ByMap<V>, VariableResolver.Union<V>
NONE
Modifier and Type | Method and Description |
---|---|
V |
resolve(String name)
Receives a variable name and obtains the value associated with the name.
|
public V resolve(String name)
VariableResolver
This can be implemented simply on top of a Map
(see VariableResolver.ByMap
), or
this can be used like an expression evaluator.
resolve
in interface VariableResolver<V>
name
- Name of the variable to be resolved.
Never null, never empty. The name shouldn't include the syntactic
marker of an expression. IOW, it should be "foo" but not "${foo}".
A part of the goal of this design is to abstract away the expression
marker syntax.Copyright © 2004–2022. All rights reserved.