|
||||||||||
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 valuepublic DBNode(Data d, int p, int k)
d
- data referencep
- pre valuek
- node kindpublic DBNode(Data d, int p, Nod r, Type t)
d
- data referencep
- pre valuer
- parent referencet
- node typeMethod 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 Item
ser
- serializer
IOException
- I/O exceptionpublic final byte[] nname()
Nod
nname
in class Nod
public final QNm qname()
Nod
qname
in class Nod
public final QNm qname(QNm name)
Nod
qname
in class Nod
name
- temporary qname
public final Atts ns()
Nod
ns
in class Nod
public final byte[] base()
Nod
base
in class Nod
public final boolean is(Nod nod)
Nod
is
in class Nod
nod
- node to be compared
public final int diff(Nod nod)
Nod
diff
in class Nod
nod
- node to be compared
public final DBNode copy()
Nod
copy
in class Nod
public final DBNode finish()
Nod
finish
in class Nod
public final Nod parent()
Nod
parent
in class Nod
public final void parent(Nod p)
Nod
parent
in class Nod
p
- parent nodepublic final NodeIter anc()
Nod
anc
in class Nod
public final NodeIter attr()
Nod
attr
in class Nod
public final NodeMore child()
Nod
child
in class Nod
public final NodeIter desc()
Nod
desc
in class Nod
public final NodeIter descOrSelf()
Nod
descOrSelf
in class Nod
public final NodeIter par()
Nod
par
in class Nod
public final String color()
ExprInfo
color
in class ExprInfo
public final void plan(Serializer ser) throws IOException
ExprInfo
plan
in class Item
ser
- 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 |