|
||||||||||
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
public abstract class Nod
Node type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Use |
Field Summary |
---|
Fields inherited from class org.basex.query.item.Item |
---|
score, type |
Method Summary | |
---|---|
NodeIter |
anc()
Returns an ancestor axis iterator. |
NodeIter |
ancOrSelf()
Returns an ancestor-or-self axis iterator. |
abstract NodeIter |
attr()
Returns an attribute axis iterator. |
byte[] |
base()
Returns the database name. |
boolean |
bool()
Returns a boolean representation of the item. |
abstract NodeMore |
child()
Returns a child axis iterator. |
abstract Nod |
copy()
Creates a new copy (clone) of the node. |
double |
dbl()
Returns a double representation of the item. |
BigDecimal |
dec()
Returns a decimal representation of the item. |
abstract NodeIter |
desc()
Returns a descendant axis iterator. |
abstract NodeIter |
descOrSelf()
Returns a descendant-or-self axis iterator. |
int |
diff(Item i)
Returns the difference between the current and the specified item. |
abstract int |
diff(Nod nod)
Compares two nodes for their unique order. |
boolean |
eq(Item i)
Checks the items for equality. |
Nod |
finish()
Returns a final node representation. |
float |
flt()
Returns a float representation of the item. |
NodeIter |
foll()
Returns a following axis iterator. |
NodeIter |
follSibl()
Returns a following-sibling axis iterator. |
int |
id()
Returns the node id. |
abstract boolean |
is(Nod nod)
Compares two nodes for equality. |
long |
itr()
Returns an integer (long) representation of the item. |
BXNode |
java()
Returns a Java object. |
static int |
kind(Type t)
Returns a database kind for the specified node type. |
byte[] |
nname()
Returns the node name. |
Atts |
ns()
Returns a namespace array. |
abstract NodeIter |
par()
Returns a parent axis iterator. |
abstract Nod |
parent()
Returns the parent node. |
void |
parent(Nod p)
Sets the parent node. |
NodeIter |
prec()
Returns a preceding axis iterator. |
NodeIter |
precSibl()
Returns a preceding-sibling axis iterator. |
QNm |
qname()
Returns the node name. |
QNm |
qname(QNm nm)
Returns a temporary node name. |
NodeMore |
self()
Returns an self axis iterator. |
byte[] |
uri(byte[] pref,
QueryContext ctx)
Returns the uri for the specified prefix. |
Methods inherited from class org.basex.query.item.Item |
---|
atomic, comp, d, duplicates, ebv, hashCode, i, iter, iter, n, name, node, plan, removable, returned, s, score, score, serialize, size, str, test, toString, 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 |
---|
color, info |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final boolean bool()
Item
bool
in class Item
public final long itr() throws QueryException
Item
itr
in class Item
QueryException
- query exceptionpublic final float flt() throws QueryException
Item
flt
in class Item
QueryException
- query exceptionpublic final BigDecimal dec() throws QueryException
Item
dec
in class Item
QueryException
- query exceptionpublic final double dbl() throws QueryException
Item
dbl
in class Item
QueryException
- query exceptionpublic final boolean eq(Item i) throws QueryException
Item
eq
in class Item
i
- item to be compared
QueryException
- query exceptionpublic final int diff(Item i) throws QueryException
Item
diff
in class Item
i
- item to be compared
QueryException
- query exceptionpublic abstract Nod copy()
public byte[] nname()
public QNm qname()
public final int id()
public QNm qname(QNm nm) throws QueryException
nm
- temporary qname
QueryException
- query exceptionpublic Atts ns()
public byte[] uri(byte[] pref, QueryContext ctx)
pref
- prefixctx
- query context
public byte[] base()
public abstract boolean is(Nod nod)
nod
- node to be compared
public abstract int diff(Nod nod)
nod
- node to be compared
public Nod finish()
public abstract Nod parent()
public void parent(Nod p)
p
- parent nodepublic NodeIter anc()
public final NodeIter ancOrSelf()
public abstract NodeIter attr()
public abstract NodeMore child()
public abstract NodeIter desc()
public abstract NodeIter descOrSelf()
public final NodeIter foll()
public final NodeIter follSibl()
public abstract NodeIter par()
public final NodeIter prec()
public final NodeIter precSibl()
public final NodeMore self()
public static int kind(Type t)
t
- node type
public final BXNode java()
Item
java
in class Item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |