Class CombiningEvaluator.Or

    • Constructor Detail

      • Or

        Or​(java.util.Collection<Evaluator> evaluators)
        Create a new Or evaluator. The initial evaluators are ANDed together and used as the first clause of the OR.
        Parameters:
        evaluators - initial OR clause (these are wrapped into an AND evaluator).
      • Or

        Or()
    • Method Detail

      • matches

        public boolean matches​(Element root,
                               Element node)
        Description copied from class: Evaluator
        Test if the element meets the evaluator's requirements.
        Specified by:
        matches in class Evaluator
        Parameters:
        root - Root of the matching subtree
        node - tested element
        Returns:
        Returns true if the requirements are met or false otherwise
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object