Class AndCondition


public class AndCondition extends CompositeCondition
A condition which consists of a list of alternatives to match at any location
Author:
bratseth
  • Constructor Details

    • AndCondition

      public AndCondition()
  • Method Details

    • 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
    • useParentheses

      protected boolean useParentheses()
      Description copied from class: CompositeCondition
      Whether this should be output with parentheses, default is parent!=null
      Overrides:
      useParentheses in class CompositeCondition
    • toInnerString

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