Class GraphCondition

    • Constructor Detail

      • GraphCondition

        public GraphCondition()
    • 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".