Class GraphCondition
- java.lang.Object
-
- org.ocpsoft.rewrite.config.DefaultConditionBuilder
-
- org.jboss.windup.config.condition.GraphCondition
-
- All Implemented Interfaces:
org.ocpsoft.rewrite.config.Condition,org.ocpsoft.rewrite.config.ConditionBuilder
- Direct Known Subclasses:
AbstractIterationFilter,ParamCondition,ParameterizedGraphCondition,Query,WindupConfigurationQuery
public abstract class GraphCondition extends org.ocpsoft.rewrite.config.DefaultConditionBuilderAConditionthat evaluates against aGraphRewriteevent.- Author:
- Lincoln Baxter, III
-
-
Constructor Summary
Constructors Constructor Description GraphCondition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanevaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)booleanevaluate(org.ocpsoft.rewrite.event.Rewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)StringgetInputVariablesName()StringgetOutputVariablesName()voidsetInputVariablesName(String variablesName)voidsetOutputVariablesName(String outputVariablesName)protected voidsetResults(GraphRewrite event, String variable, Iterable<? extends org.jboss.windup.graph.model.WindupVertexFrame> results)This sets the variable with the given name to the given value.
-
-
-
Method Detail
-
evaluate
public abstract boolean evaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
-
setInputVariablesName
public void setInputVariablesName(String variablesName)
-
getInputVariablesName
public String getInputVariablesName()
-
evaluate
public final boolean evaluate(org.ocpsoft.rewrite.event.Rewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
-
getOutputVariablesName
public String getOutputVariablesName()
-
setOutputVariablesName
public void setOutputVariablesName(String outputVariablesName)
-
setResults
protected void setResults(GraphRewrite event, String variable, Iterable<? extends org.jboss.windup.graph.model.WindupVertexFrame> results)
This sets the variable with the given name to the given value. If there is already a variable with the same name in the top-most stack frame, we will combine them here. This helps in the case of multiple conditions tied together with "or" or "and".
-
-