Class TermCondition


  • public class TermCondition
    extends Condition
    A term in a rule
    Author:
    bratseth
    • Constructor Detail

      • TermCondition

        public TermCondition()
        Creates an invalid term
      • TermCondition

        public TermCondition​(java.lang.String term)
      • TermCondition

        public TermCondition​(java.lang.String label,
                             java.lang.String term)
    • Method Detail

      • getTerm

        public java.lang.String getTerm()
      • setTerm

        public void setTerm​(java.lang.String term)
      • doesMatch

        protected 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
      • toInnerString

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