Class Evaluator.AttributeWithValueNot

Enclosing class:
Evaluator

Evaluator for attribute name != value matching
  • Constructor Details

  • Method Details

    • cost

      protected int cost()
      Description copied from class: Evaluator
      A relative evaluator cost function. During evaluation, Evaluators are sorted by ascending cost as an optimization.
      Overrides:
      cost in class Evaluator
      Returns:
      the relative cost of this Evaluator
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • matches

      public boolean matches(Element root, Element element)
      Description copied from class: Evaluator
      Tests whether the element matches this evaluator.
      Specified by:
      matches in class Evaluator
      Parameters:
      root - the query context, used by :scope; for a Document, :scope matches its document element
      element - the element to test
      Returns:
      whether the element matches