|
Groovy 1.8.4 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.util.slurpersupport.GPathResult
public abstract class GPathResult extends GroovyObjectSupport
Base class for representing lazy evaluated GPath expressions.
Field Summary | |
---|---|
protected String |
name
|
protected Map |
namespaceMap
|
protected String |
namespacePrefix
|
protected Map |
namespaceTagHints
|
protected GPathResult |
parent
|
Constructor Summary | |
GPathResult(GPathResult parent, String name, String namespacePrefix, Map namespaceTagHints)
@param parent the GPathResult prior to the application of the expression creating this GPathResult |
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected final String name
protected final Map namespaceMap
protected final String namespacePrefix
protected final Map namespaceTagHints
protected final GPathResult parent
Constructor Detail |
---|
public GPathResult(GPathResult parent, String name, String namespacePrefix, Map namespaceTagHints)
parent
- the GPathResult prior to the application of the expression creating this GPathResultname
- if the GPathResult corresponds to something with a name, e.g. a nodenamespacePrefix
- the namespace prefix if anynamespaceTagHints
- the known tag to namespace mappings
Method Detail |
---|
protected void appendNode(Object newValue)
public Iterator breadthFirst()
public Iterator childNodes()
public GPathResult children()
public GPathResult declareNamespace(Map newNamespaceMapping)
public Iterator depthFirst()
public boolean equals(Object obj)
public GPathResult find(Closure closure)
public GPathResult findAll(Closure closure)
public Object getAt(int index)
public Object getAt(IntRange range)
public Closure getBody()
public Object getProperty(String property)
public boolean isEmpty()
public Iterator iterator()
public Object leftShift(Object newValue)
public List list()
public String lookupNamespace(String prefix)
public String name()
public Iterator nodeIterator()
public GPathResult parent()
public GPathResult parents()
public Object plus(Object newValue)
public void putAt(int index, Object newValue)
protected void replaceBody(Object newValue)
protected void replaceNode(Closure newValue)
@Override public void setMetaClass(MetaClass metaClass)
public void setProperty(String property, Object newValue)
public int size()
public String text()
public BigDecimal toBigDecimal()
public BigInteger toBigInteger()
public Boolean toBoolean()
public Double toDouble()
public Float toFloat()
public Integer toInteger()
public Long toLong()
public String toString()
public URI toURI()
public URL toURL()
Copyright © 2003-2011 The Codehaus. All rights reserved.