|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.item.Item
org.basex.query.item.Nod
org.basex.query.item.DBNode
public class DBNode
Disk-based Node item.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
|---|
Expr.Use |
| Field Summary | |
|---|---|
Data |
data
Data reference. |
int |
pre
Pre value. |
Nod |
root
Root node (constructor). |
static Type[] |
TYPES
Node Types. |
| Fields inherited from class org.basex.query.item.Item |
|---|
score, type |
| Constructor Summary | |
|---|---|
DBNode()
Constructor. |
|
DBNode(Data d,
int p)
Constructor. |
|
DBNode(Data d,
int p,
int k)
Constructor. |
|
DBNode(Data d,
int p,
Nod r,
Type t)
Constructor. |
|
| Method Summary | |
|---|---|
NodeIter |
anc()
Returns an ancestor axis iterator. |
NodeIter |
attr()
Returns an attribute axis iterator. |
byte[] |
base()
Returns the database name. |
NodeMore |
child()
Returns a child axis iterator. |
String |
color()
Returns a color string for the expression. |
DBNode |
copy()
Creates a new copy (clone) of the node. |
NodeIter |
desc()
Returns a descendant axis iterator. |
NodeIter |
descOrSelf()
Returns a descendant-or-self axis iterator. |
int |
diff(Nod nod)
Compares two nodes for their unique order. |
DBNode |
finish()
Returns a final node representation. |
boolean |
is(Nod nod)
Compares two nodes for equality. |
byte[] |
nname()
Returns the node name. |
Atts |
ns()
Returns a namespace array. |
NodeIter |
par()
Returns a parent axis iterator. |
Nod |
parent()
Returns the parent node. |
void |
parent(Nod p)
Sets the parent node. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
QNm |
qname()
Returns the node name. |
QNm |
qname(QNm name)
Returns a temporary node name. |
void |
serialize(Serializer ser)
Serializes the item. |
void |
set(int p,
int k)
Sets the node type. |
byte[] |
str()
Returns an atomized string. |
String |
toString()
|
| Methods inherited from class org.basex.query.item.Nod |
|---|
ancOrSelf, bool, dbl, dec, diff, eq, flt, foll, follSibl, id, itr, java, kind, prec, precSibl, self, uri |
| Methods inherited from class org.basex.query.item.Item |
|---|
atomic, comp, d, duplicates, ebv, hashCode, i, iter, iter, n, name, node, removable, returned, s, score, score, size, test, u, uses |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
addText, checkCtx, checkDbl, checkItr, e, indexAccessible, indexEquivalent, remove, sameAs, v |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
info |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Type[] TYPES
public final Data data
public Nod root
public int pre
| Constructor Detail |
|---|
public DBNode()
public DBNode(Data d,
int p)
d - data referencep - pre value
public DBNode(Data d,
int p,
int k)
d - data referencep - pre valuek - node kind
public DBNode(Data d,
int p,
Nod r,
Type t)
d - data referencep - pre valuer - parent referencet - node type| Method Detail |
|---|
public final void set(int p,
int k)
p - pre valuek - node kindpublic final byte[] str()
Item
str in class Item
public final void serialize(Serializer ser)
throws IOException
Item
serialize in class Itemser - serializer
IOException - I/O exceptionpublic final byte[] nname()
Nod
nname in class Nodpublic final QNm qname()
Nod
qname in class Nodpublic final QNm qname(QNm name)
Nod
qname in class Nodname - temporary qname
public final Atts ns()
Nod
ns in class Nodpublic final byte[] base()
Nod
base in class Nodpublic final boolean is(Nod nod)
Nod
is in class Nodnod - node to be compared
public final int diff(Nod nod)
Nod
diff in class Nodnod - node to be compared
public final DBNode copy()
Nod
copy in class Nodpublic final DBNode finish()
Nod
finish in class Nodpublic final Nod parent()
Nod
parent in class Nodpublic final void parent(Nod p)
Nod
parent in class Nodp - parent nodepublic final NodeIter anc()
Nod
anc in class Nodpublic final NodeIter attr()
Nod
attr in class Nodpublic final NodeMore child()
Nod
child in class Nodpublic final NodeIter desc()
Nod
desc in class Nodpublic final NodeIter descOrSelf()
Nod
descOrSelf in class Nodpublic final NodeIter par()
Nod
par in class Nodpublic final String color()
ExprInfo
color in class ExprInfo
public final void plan(Serializer ser)
throws IOException
ExprInfo
plan in class Itemser - serializer
IOException - I/O exceptionpublic String toString()
toString in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||