public class FilteredAttributes extends GPathResult
name, namespaceMap, namespacePrefix, namespaceTagHints, parent| Constructor and Description |
|---|
FilteredAttributes(GPathResult parent,
groovy.lang.Closure closure,
Map<String,String> namespaceTagHints) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendNode(Object newValue) |
void |
build(groovy.lang.GroovyObject builder) |
Iterator |
childNodes()
Throws a
GroovyRuntimeException, because attributes can have no children. |
GPathResult |
find(groovy.lang.Closure closure)
Returns the first child of this GPathResult matching the condition(s)
specified in the passed closure.
|
GPathResult |
findAll(groovy.lang.Closure closure)
Returns the children of this GPathResult matching the condition(s)
specified in the passed closure.
|
Iterator |
iterator() |
List |
list()
Creates a list of objects representing this GPathResult.
|
String |
name()
Returns the name of this GPathResult.
|
Iterator |
nodeIterator() |
GPathResult |
parents()
Throws a
GroovyRuntimeException, because it is not implemented yet. |
protected void |
replaceBody(Object newValue) |
protected void |
replaceNode(groovy.lang.Closure newValue) |
int |
size()
Returns the size of this GPathResult.
|
String |
text()
Returns the text of this GPathResult as a
String. |
Writer |
writeTo(Writer out) |
breadthFirst, children, declareNamespace, depthFirst, equals, getAt, getAt, getBody, getProperty, isEmpty, leftShift, lookupNamespace, parent, plus, putAt, setMetaClass, setProperty, toBigDecimal, toBigInteger, toBoolean, toDouble, toFloat, toInteger, toLong, toString, toURI, toURLpublic FilteredAttributes(GPathResult parent, groovy.lang.Closure closure, Map<String,String> namespaceTagHints)
parent - the GPathResult prior to the application of the expression creating this GPathResultclosure - the Closure to use to filter the attributesnamespaceTagHints - the known tag to namespace mappingspublic Iterator nodeIterator()
public String name()
GPathResultname in class GPathResultpublic Iterator childNodes()
GroovyRuntimeException, because attributes can have no children.public Iterator iterator()
public GPathResult parents()
GroovyRuntimeException, because it is not implemented yet.public String text()
GPathResultString.public List list()
GPathResultlist in class GPathResultpublic GPathResult findAll(groovy.lang.Closure closure)
GPathResultclosure - a closure to filters the children of this GPathResultpublic Writer writeTo(Writer out) throws IOException
writeTo in interface groovy.lang.WritableIOExceptionpublic void build(groovy.lang.GroovyObject builder)
build in interface groovy.lang.Buildablepublic int size()
GPathResultsize in class GPathResultpublic GPathResult find(groovy.lang.Closure closure)
GPathResultfind in class GPathResultclosure - a closure to filters the children of this GPathResultprotected void replaceNode(groovy.lang.Closure newValue)
replaceNode in class GPathResultprotected void replaceBody(Object newValue)
replaceBody in class GPathResultprotected void appendNode(Object newValue)
appendNode in class GPathResult