Class Evaluator.IndexGreaterThan

  • Enclosing class:
    Evaluator

    public static final class Evaluator.IndexGreaterThan
    extends Evaluator.IndexEvaluator
    Evaluator for matching by sibling index number (e > idx)
    • Constructor Detail

      • IndexGreaterThan

        public IndexGreaterThan​(int index)
    • Method Detail

      • matches

        public boolean matches​(Element root,
                               Element element)
        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
        element - tested element
        Returns:
        Returns true if the requirements are met or false otherwise