|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pmease.quickbuild.execution.killtree.VariableResolver.ByMap<V>
public static final class VariableResolver.ByMap<V>
VariableResolver
backed by a Map
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.pmease.quickbuild.execution.killtree.VariableResolver |
---|
VariableResolver.ByMap<V>, VariableResolver.Union<V> |
Field Summary |
---|
Fields inherited from interface com.pmease.quickbuild.execution.killtree.VariableResolver |
---|
NONE |
Constructor Summary | |
---|---|
VariableResolver.ByMap(java.util.Map<java.lang.String,V> data)
|
Method Summary | |
---|---|
V |
resolve(java.lang.String name)
Receives a variable name and obtains the value associated with the name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableResolver.ByMap(java.util.Map<java.lang.String,V> data)
Method Detail |
---|
public V resolve(java.lang.String name)
VariableResolver
This can be implemented simply on top of a VariableResolver.ByMap
(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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |