Package hudson.util
Class VariableResolver.Union<V>
java.lang.Object
hudson.util.VariableResolver.Union<V>
- All Implemented Interfaces:
VariableResolver<V>
- Enclosing interface:
VariableResolver<V>
Union of multiple
VariableResolver.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.util.VariableResolver
VariableResolver.ByMap<V>, VariableResolver.Union<V> -
Field Summary
Fields inherited from interface hudson.util.VariableResolver
NONE -
Constructor Summary
ConstructorsConstructorDescriptionUnion(VariableResolver<? extends V>... resolvers) Union(Collection<? extends VariableResolver<? extends V>> resolvers) -
Method Summary
-
Constructor Details
-
Union
-
Union
-
-
Method Details
-
resolve
Description copied from interface:VariableResolverReceives a variable name and obtains the value associated with the name.This can be implemented simply on top of a
Map(seeVariableResolver.ByMap), or this can be used like an expression evaluator.- Specified by:
resolvein interfaceVariableResolver<V>- Parameters:
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.- Returns:
- Object referenced by the name. Null if not found.
-