Class NodeParents

All Implemented Interfaces:
Buildable, GroovyObject, Writable, Iterable

public class NodeParents extends NodeChildren
Lazy evaluated representation of parent nodes without duplicates
  • Constructor Details

    • NodeParents

      public NodeParents(GPathResult parent, Map<String,String> namespaceTagHints)
      Parameters:
      parent - the GPathResult prior to the application of the expression creating this GPathResult
      namespaceTagHints - the known tag to namespace mappings
  • Method Details

    • nodeIterator

      public Iterator nodeIterator()
      Returns the raw node iterator backing this lazy result.
      Overrides:
      nodeIterator in class NodeChildren
      Returns:
      the underlying node iterator