|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.list.ElementList
org.basex.query.util.ANodeList
public final class ANodeList
This is a light-weight container for XML nodes.
Field Summary |
---|
Fields inherited from class org.basex.util.list.ElementList |
---|
factor, size |
Constructor Summary | |
---|---|
ANodeList()
Constructor. |
|
ANodeList(ANode... n)
Constructor, specifying initial nodes. |
|
ANodeList(int c)
Constructor, specifying an initial array capacity. |
Method Summary | |
---|---|
void |
add(ANode e)
Adds an element to the array. |
ANode |
get(int p)
Returns the specified element. |
java.util.Iterator<ANode> |
iterator()
|
void |
set(int i,
ANode e)
Sets an element at the specified index position. |
Value |
value()
Returns an array with all elements. |
Methods inherited from class org.basex.util.list.ElementList |
---|
isEmpty, newSize, newSize, reset, size, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ANodeList()
public ANodeList(int c)
c
- array capacitypublic ANodeList(ANode... n)
n
- initial nodesMethod Detail |
---|
public void add(ANode e)
e
- element to be addedpublic void set(int i, ANode e)
i
- indexe
- element to be setpublic ANode get(int p)
p
- position
public Value value()
public java.util.Iterator<ANode> iterator()
iterator
in interface java.lang.Iterable<ANode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |