groovy.util.slurpersupport
Class GPathResult
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.slurpersupport.GPathResult
- All Implemented Interfaces:
- Buildable, GroovyObject, Writable
- Direct Known Subclasses:
- FilteredAttributes, FilteredNodeChildren, NoChildren, NodeChild
public abstract class GPathResult
- extends GroovyObjectSupport
- implements Writable, Buildable
- Author:
- John Wilson
parent
protected final GPathResult parent
name
protected final String name
namespacePrefix
protected final String namespacePrefix
namespaceMap
protected final Map namespaceMap
namespaceTagHints
protected final Map namespaceTagHints
GPathResult
public GPathResult(GPathResult parent,
String name,
String namespacePrefix,
Map namespaceTagHints)
- Parameters:
parent
- name
-
setMetaClass
public void setMetaClass(MetaClass metaClass)
- Description copied from interface:
GroovyObject
- Allows the MetaClass to be replaced with a derived implementation
- Specified by:
setMetaClass
in interface GroovyObject
- Overrides:
setMetaClass
in class GroovyObjectSupport
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interface GroovyObject
- Overrides:
getProperty
in class GroovyObjectSupport
- Returns:
- the given property
name
public String name()
parent
public GPathResult parent()
children
public GPathResult children()
toString
public String toString()
- Overrides:
toString
in class Object
declareNamespace
public GPathResult declareNamespace(Map newNamespaceMapping)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getAt
public Object getAt(int index)
list
public List list()
size
public abstract int size()
text
public abstract String text()
parents
public abstract GPathResult parents()
childNodes
public abstract Iterator childNodes()
iterator
public abstract Iterator iterator()
find
public abstract GPathResult find(Closure closure)
findAll
public abstract GPathResult findAll(Closure closure)
nodeIterator
public abstract Iterator nodeIterator()
Copyright © 2003-2010 The Codehaus. All Rights Reserved.