|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport groovy.util.slurpersupport.GPathResult
public abstract class GPathResult extends GroovyObjectSupport
Base class for representing lazy evaluated GPath expressions.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected java.util.Map |
namespaceMap
|
protected java.lang.String |
namespacePrefix
|
protected java.util.Map |
namespaceTagHints
|
protected GPathResult |
parent
|
Constructor Summary | |
GPathResult(GPathResult parent, java.lang.String name, java.lang.String namespacePrefix, java.util.Map namespaceTagHints)
@param parent the GPathResult prior to the application of the expression creating this GPathResult |
Method Summary | |
---|---|
protected void
|
appendNode(java.lang.Object newValue)
|
java.util.Iterator
|
breadthFirst()
An iterator useful for traversing XML documents/fragments in breadth-first order. |
java.util.Iterator
|
childNodes()
|
GPathResult
|
children()
|
GPathResult
|
declareNamespace(java.util.Map newNamespaceMapping)
|
java.util.Iterator
|
depthFirst()
|
boolean
|
equals(java.lang.Object obj)
|
GPathResult
|
find(Closure closure)
|
GPathResult
|
findAll(Closure closure)
|
java.lang.Object
|
getAt(int index)
|
java.lang.Object
|
getAt(IntRange range)
|
Closure
|
getBody()
|
java.lang.Object
|
getProperty(java.lang.String property)
|
boolean
|
isEmpty()
|
java.util.Iterator
|
iterator()
|
java.lang.Object
|
leftShift(java.lang.Object newValue)
|
java.util.List
|
list()
|
java.lang.String
|
lookupNamespace(java.lang.String prefix)
|
java.lang.String
|
name()
|
java.util.Iterator
|
nodeIterator()
|
GPathResult
|
parent()
|
GPathResult
|
parents()
|
java.lang.Object
|
plus(java.lang.Object newValue)
|
void
|
putAt(int index, java.lang.Object newValue)
|
protected void
|
replaceBody(java.lang.Object newValue)
|
protected void
|
replaceNode(Closure newValue)
|
void
|
setMetaClass(MetaClass metaClass)
|
void
|
setProperty(java.lang.String property, java.lang.Object newValue)
|
int
|
size()
|
java.lang.String
|
text()
|
java.math.BigDecimal
|
toBigDecimal()
|
java.math.BigInteger
|
toBigInteger()
|
java.lang.Boolean
|
toBoolean()
|
java.lang.Double
|
toDouble()
|
java.lang.Float
|
toFloat()
|
java.lang.Integer
|
toInteger()
|
java.lang.Long
|
toLong()
|
java.lang.String
|
toString()
|
java.net.URI
|
toURI()
|
java.net.URL
|
toURL()
|
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final java.lang.String name
protected final java.util.Map namespaceMap
protected final java.lang.String namespacePrefix
protected final java.util.Map namespaceTagHints
protected final GPathResult parent
Constructor Detail |
---|
public GPathResult(GPathResult parent, java.lang.String name, java.lang.String namespacePrefix, java.util.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(java.lang.Object newValue)
public java.util.Iterator breadthFirst()
public java.util.Iterator childNodes()
public GPathResult children()
public GPathResult declareNamespace(java.util.Map newNamespaceMapping)
public java.util.Iterator depthFirst()
public boolean equals(java.lang.Object obj)
public GPathResult find(Closure closure)
public GPathResult findAll(Closure closure)
public java.lang.Object getAt(int index)
public java.lang.Object getAt(IntRange range)
public Closure getBody()
public java.lang.Object getProperty(java.lang.String property)
public boolean isEmpty()
public java.util.Iterator iterator()
public java.lang.Object leftShift(java.lang.Object newValue)
public java.util.List list()
public java.lang.String lookupNamespace(java.lang.String prefix)
public java.lang.String name()
public java.util.Iterator nodeIterator()
public GPathResult parent()
public GPathResult parents()
public java.lang.Object plus(java.lang.Object newValue)
public void putAt(int index, java.lang.Object newValue)
protected void replaceBody(java.lang.Object newValue)
protected void replaceNode(Closure newValue)
@Override public void setMetaClass(MetaClass metaClass)
public void setProperty(java.lang.String property, java.lang.Object newValue)
public int size()
public java.lang.String text()
public java.math.BigDecimal toBigDecimal()
public java.math.BigInteger toBigInteger()
public java.lang.Boolean toBoolean()
public java.lang.Double toDouble()
public java.lang.Float toFloat()
public java.lang.Integer toInteger()
public java.lang.Long toLong()
public java.lang.String toString()
public java.net.URI toURI()
public java.net.URL toURL()
Groovy Documentation