Object PowerCollector

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Elements collect(Evaluator eval, Element root) Build a list of elements, by visiting root and every descendant of root, and testing it against the evaluator.
      final Element findFirst(Evaluator eval, Element root)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • collect

         final Elements collect(Evaluator eval, Element root)

        Build a list of elements, by visiting root and every descendant of root, and testing it against the evaluator.

        Parameters:
        eval - Evaluator to test elements against
        root - root of tree to descend
        Returns:

        list of matches; empty if none

      • findFirst

         final Element findFirst(Evaluator eval, Element root)