Class GPathResult

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.slurpersupport.GPathResult
All Implemented Interfaces:
Buildable, GroovyObject, Writable
Direct Known Subclasses:
Attribute, FilteredAttributes, FilteredNodeChildren, NoChildren, NodeChild

public abstract class GPathResult extends GroovyObjectSupport implements Writable, Buildable
Base class for representing lazy evaluated GPath expressions.
Author:
John Wilson
  • Field Details

    • parent

      protected final GPathResult parent
    • name

      protected final String name
    • namespacePrefix

      protected final String namespacePrefix
    • namespaceMap

      protected final Map namespaceMap
    • namespaceTagHints

      protected final Map<String,String> namespaceTagHints
  • Constructor Details

    • GPathResult

      public GPathResult(GPathResult parent, String name, String namespacePrefix, Map<String,String> namespaceTagHints)
      Parameters:
      parent - the GPathResult prior to the application of the expression creating this GPathResult
      name - if the GPathResult corresponds to something with a name, e.g. a node
      namespacePrefix - the namespace prefix if any
      namespaceTagHints - the known tag to namespace mappings
  • Method Details