| Method from groovy.util.slurpersupport.NodeChild Detail: |
protected void appendNode(Object newValue) {
this.node.appendNode(newValue, this);
}
|
public Map attributes() {
return this.node.attributes();
}
|
public void build(GroovyObject builder) {
this.node.build(builder, this.namespaceMap, this.namespaceTagHints);
}
|
public Iterator childNodes() {
return this.node.childNodes();
}
|
public GPathResult find(Closure closure) {
if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{this.node}))) {
return this;
} else {
return new NoChildren(this, "", this.namespaceTagHints);
}
}
|
public GPathResult findAll(Closure closure) {
return find(closure);
}
|
public Object getAt(int index) {
if (index == 0) {
return node;
} else {
throw new ArrayIndexOutOfBoundsException(index);
}
}
|
public Iterator iterator() {
return new Iterator() {
private boolean hasNext = true;
public boolean hasNext() {
return this.hasNext;
}
public Object next() {
try {
return (this.hasNext) ? NodeChild.this : null;
} finally {
this.hasNext = false;
}
}
public void remove() {
throw new UnsupportedOperationException();
}
};
}
|
public String namespaceURI() {
return this.node.namespaceURI();
}
|
public Iterator nodeIterator() {
return new Iterator() {
private boolean hasNext = true;
public boolean hasNext() {
return this.hasNext;
}
public Object next() {
try {
return (this.hasNext) ? NodeChild.this.node : null;
} finally {
this.hasNext = false;
}
}
public void remove() {
throw new UnsupportedOperationException();
}
};
}
|
public GPathResult parents() {
// TODO Auto-generated method stub
throw new GroovyRuntimeException("parents() not implemented yet");
}
|
protected void replaceBody(Object newValue) {
this.node.replaceBody(newValue);
}
|
protected void replaceNode(Closure newValue) {
this.node.replaceNode(newValue, this);
}
|
public int size() {
return 1;
}
|
public String text() {
return this.node.text();
}
|
public Writer writeTo(Writer out) throws IOException {
return this.node.writeTo(out);
}
|