public GPathResult find(final Closure closure) { if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{this.node}))) { return this; } else { return new NoChildren(this, "", this.namespaceTagHints); } }
/** * Returns an empty <code>Iterator</code>. * @return an empty <code>Iterator</code> */ public Iterator childNodes() { return iterator(); }
public GPathResult find(final Closure closure) { if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{this}))) { return this; } else { return new NoChildren(this, "", this.namespaceTagHints); } }
/** * Returns an empty iterator. * @return an empty iterator */ public Iterator nodeIterator() { return iterator(); }
public GPathResult find(final Closure closure) { final Iterator iter = iterator(); while (iter.hasNext()) { final Object node = iter.next(); if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{node}))) { return (GPathResult) node; } } return new NoChildren(this, this.name, namespaceTagHints); }
/** * Returns an empty <code>Iterator</code>. * @return an empty <code>Iterator</code> */ public Iterator childNodes() { return iterator(); }
return new NoChildren(this, this.name, this.namespaceTagHints);
/** * Returns an empty iterator. * @return an empty iterator */ public Iterator nodeIterator() { return iterator(); }
public GPathResult find(final Closure closure) { if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{this.node}))) { return this; } else { return new NoChildren(this, "", this.namespaceTagHints); } }
public Iterator childNodes() { return iterator(); }
public GPathResult find(final Closure closure) { if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{this}))) { return this; } else { return new NoChildren(this, "", this.namespaceTagHints); } }
public Iterator childNodes() { return iterator(); }
public GPathResult find(final Closure closure) { if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{this.node}))) { return this; } else { return new NoChildren(this, "", this.namespaceTagHints); } }
public Iterator nodeIterator() { return iterator(); }
public GPathResult find(final Closure closure) { if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{this.node}))) { return this; } else { return new NoChildren(this, "", this.namespaceTagHints); } }
public Iterator childNodes() { return iterator(); }
public Object getAt(final int index) { if (index < 0) throw new ArrayIndexOutOfBoundsException(index); final Iterator iter = iterator(); int count = 0; while (iter.hasNext()) { if (count++ == index) { return iter.next(); } else { iter.next(); } } return new NoChildren(this, this.name, this.namespaceTagHints); }
public Iterator nodeIterator() { return iterator(); }
public GPathResult find(final Closure closure) { if (DefaultTypeTransformation.castToBoolean(closure.call(new Object[]{this.node}))) { return this; } else { return new NoChildren(this, "", this.namespaceTagHints); } }
public Iterator nodeIterator() { return iterator(); }