Class AbstractIterationFilter<T extends org.jboss.windup.graph.model.WindupVertexFrame>
- java.lang.Object
-
- org.ocpsoft.rewrite.config.DefaultConditionBuilder
-
- org.jboss.windup.config.condition.GraphCondition
-
- org.jboss.windup.config.operation.iteration.AbstractIterationFilter<T>
-
- All Implemented Interfaces:
org.ocpsoft.rewrite.config.Condition,org.ocpsoft.rewrite.config.ConditionBuilder
public abstract class AbstractIterationFilter<T extends org.jboss.windup.graph.model.WindupVertexFrame> extends GraphCondition
-
-
Constructor Summary
Constructors Constructor Description AbstractIterationFilter()If the variable name is not specified, the iteration will set it.AbstractIterationFilter(String variableName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckVariableName(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)Check the variable name and if not set, set it with the singleton variable being on the top of the stack.booleanevaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)abstract booleanevaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, T payload)booleanhasVariableNameSet()-
Methods inherited from class org.jboss.windup.config.condition.GraphCondition
evaluate, getInputVariablesName, getOutputVariablesName, setInputVariablesName, setOutputVariablesName, setResults
-
-
-
-
Constructor Detail
-
AbstractIterationFilter
public AbstractIterationFilter(String variableName)
-
AbstractIterationFilter
public AbstractIterationFilter()
If the variable name is not specified, the iteration will set it.
-
-
Method Detail
-
hasVariableNameSet
public boolean hasVariableNameSet()
-
evaluate
public boolean evaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
- Specified by:
evaluatein classGraphCondition
-
checkVariableName
protected void checkVariableName(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
Check the variable name and if not set, set it with the singleton variable being on the top of the stack.
-
evaluate
public abstract boolean evaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, T payload)
-
-