Class FilteredAttributes

All Implemented Interfaces:
Buildable, GroovyObject, Writable, Iterable

public class FilteredAttributes extends Attributes
Lazy evaluated representation of a node's attributes filtered by a Closure.
  • Constructor Details

    • FilteredAttributes

      public FilteredAttributes(GPathResult parent, Closure closure, Map<String,String> namespaceTagHints)
      Parameters:
      parent - the GPathResult prior to the application of the expression creating this GPathResult
      closure - the Closure to use to filter the attributes
      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 Attributes
      Returns:
      the underlying node iterator