public abstract class BaseVarExpander extends java.lang.Object implements VarExpander
Constructor and Description |
---|
BaseVarExpander() |
Modifier and Type | Method and Description |
---|---|
static <T extends ViewTraverse<T>> |
expandAllNodesVariable(MultiDataContext<T,DataContext> data,
T currentContext,
java.util.function.BiFunction<java.lang.Integer,java.lang.String,T> viewMap,
java.lang.String step,
java.lang.String group,
java.lang.String key)
Expand a variable reference
|
<T extends ViewTraverse<T>> |
expandVariable(MultiDataContext<T,DataContext> data,
T currentContext,
java.util.function.BiFunction<java.lang.Integer,java.lang.String,T> viewMap,
java.lang.String variableref)
Expand a variable
|
static <T extends ViewTraverse<T>> |
expandVariable(MultiDataContext<T,DataContext> data,
T currentContext,
java.util.function.BiFunction<java.lang.Integer,java.lang.String,T> viewMap,
java.lang.String step,
java.lang.String group,
java.lang.String key,
java.lang.String node)
Expand a variable reference
|
protected abstract com.dtolabs.rundeck.core.data.BaseVarExpander.VariableRef |
parseVariable(java.lang.String variableref)
Parse a string defining a variable reference into a VariableRef object
|
public <T extends ViewTraverse<T>> java.lang.String expandVariable(MultiDataContext<T,DataContext> data, T currentContext, java.util.function.BiFunction<java.lang.Integer,java.lang.String,T> viewMap, java.lang.String variableref)
VarExpander
expandVariable
in interface VarExpander
T
- view typedata
- multi context dataviewMap
- create a viewvariableref
- reference textpublic static <T extends ViewTraverse<T>> java.lang.String expandVariable(MultiDataContext<T,DataContext> data, T currentContext, java.util.function.BiFunction<java.lang.Integer,java.lang.String,T> viewMap, java.lang.String step, java.lang.String group, java.lang.String key, java.lang.String node)
T
- data
- multi context dataviewMap
- factory of ViewTraverse typestep
- step textgroup
- key
- node
- public static <T extends ViewTraverse<T>> java.util.List<java.lang.String> expandAllNodesVariable(MultiDataContext<T,DataContext> data, T currentContext, java.util.function.BiFunction<java.lang.Integer,java.lang.String,T> viewMap, java.lang.String step, java.lang.String group, java.lang.String key)
T
- data
- multi context datastep
- step textgroup
- key
- protected abstract com.dtolabs.rundeck.core.data.BaseVarExpander.VariableRef parseVariable(java.lang.String variableref)
variableref
- string