Class ConditionReference

  • public class ConditionReference
    extends Condition
    A reference to a named condition
    • Constructor Detail

      • ConditionReference

        public ConditionReference​(java.lang.String conditionName)
      • ConditionReference

        public ConditionReference​(java.lang.String label,
                                  java.lang.String conditionName)
    • Method Detail

      • getConditionName

        public java.lang.String getConditionName()
        Returns the name of the referenced rule, never null
      • setConditionName

        public void setConditionName​(java.lang.String name)
      • doesMatch

        public boolean doesMatch​(RuleEvaluation e)
        Description copied from class: Condition
        Returns whether this condition matches the given evaluation at the current location of the evaluation. If there is a match, the evaluation must be advanced to the location beyond the matching item(s) before this method returns.
        Specified by:
        doesMatch in class Condition
      • makeReferences

        public void makeReferences​(RuleBase ruleBase)
        Description copied from class: Condition
        Override if references needs to be set in this condition of its children
        makeReferences in class Condition
      • hasOpenChoicepoint

        protected boolean hasOpenChoicepoint​(RuleEvaluation e)
        Description copied from class: Condition
        Returns whether there is an open choice in this or any of its subconditions. Returns false by default, must be overriden by conditions which may generate choices open accross multiple calls to matches, or contain such conditions.
        hasOpenChoicepoint in class Condition
      • toInnerString

        protected java.lang.String toInnerString()
        Description copied from class: Condition
        All instances of this produces a parseable string output
        Specified by:
        toInnerString in class Condition