|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.value.Value
org.basex.query.value.item.Item
org.basex.query.value.node.ANode
org.basex.query.value.node.DBNode
public class DBNode
Database nodes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary | |
---|---|
Data |
data
Data reference. |
int |
pre
Pre value. |
Fields inherited from class org.basex.query.value.node.ANode |
---|
id |
Fields inherited from class org.basex.query.value.item.Item |
---|
score, UNDEF |
Fields inherited from class org.basex.query.value.Value |
---|
type |
Constructor Summary | |
---|---|
DBNode(Data d)
Constructor, creating a document node from the specified data reference. |
|
DBNode(Data d,
int p)
Constructor, creating a node from the specified data reference. |
|
DBNode(Data d,
int p,
int k)
Constructor, specifying full node information. |
|
DBNode(IO input,
Prop prop)
Constructor, specifying an XML input reference. |
|
DBNode(Parser parser)
Constructor, specifying a parser reference. |
Method Summary | |
---|---|
AxisIter |
ancestor()
Returns an ancestor axis iterator. |
AxisIter |
ancestorOrSelf()
Returns an ancestor-or-self axis iterator. |
AxisMoreIter |
attributes()
Returns an attribute axis iterator. |
byte[] |
baseURI()
Returns the base URI of the node. |
AxisMoreIter |
children()
Returns a child axis iterator. |
DBNode |
copy()
Creates a copy of this node. |
Value |
copy(QueryContext ctx,
VarScope scp,
IntObjMap<Var> vs)
Copies an expression. |
Data |
data()
Returns the data reference (if) attached to this value. |
DBNode |
dbCopy(Prop prop)
Returns a database node representation of the node. |
double |
dbl(InputInfo ii)
Returns a double representation of the value. |
DBNode |
deepCopy()
Returns a deep copy of the node. |
AxisIter |
descendant()
Returns a descendant axis iterator. |
AxisIter |
descendantOrSelf()
Returns a descendant-or-self axis iterator. |
int |
diff(ANode node)
Checks the document order of two nodes. |
DBNode |
finish()
Returns a final node representation. |
AxisIter |
following()
Returns a following axis iterator. |
AxisIter |
followingSibling()
Returns a following-sibling axis iterator. |
boolean |
hasChildren()
Returns true if the node has children. |
boolean |
is(ANode node)
Checks if two nodes are identical. |
long |
itr(InputInfo ii)
Returns an integer (long) representation of the value. |
byte[] |
name()
Returns the name of the node, composed of an optional prefix and the local name. |
Atts |
namespaces()
Returns all namespaces defined for the nodes. |
ANode |
parent()
Returns the parent node. |
DBNode |
parent(ANode p)
Sets the parent node. |
AxisIter |
parentIter()
Returns a parent axis iterator. |
void |
plan(FElem plan)
Creates an expression tree. |
QNm |
qname()
Returns the QName of the node. |
QNm |
qname(QNm name)
Updates the specified with the information of the current node. |
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality. |
void |
set(int p,
int k)
Sets the node type. |
byte[] |
string()
Returns the string value. |
java.lang.String |
toString()
|
Type.ID |
typeId()
Returns a type id. |
byte[] |
xdmInfo()
Returns data model info. |
Methods inherited from class org.basex.query.value.node.ANode |
---|
attribute, attribute, attribute, bool, diff, diff, eq, kind, kind, nodeType, nsScope, optimize, preceding, precedingSibling, self, string, toJava, type, uri |
Methods inherited from class org.basex.query.value.item.Item |
---|
castErr, comparable, dec, description, ebv, equiv, flt, hash, homogeneous, input, isItem, item, itemAt, iter, iterable, materialize, score, score, size, test, type, writeTo |
Methods inherited from class org.basex.query.value.Value |
---|
accept, cache, checkUp, compile, count, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, uses, visitAll |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Data data
public int pre
Constructor Detail |
---|
public DBNode(Data d)
d
- data referencepublic 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(IO input, Prop prop) throws java.io.IOException
input
- input referenceprop
- database properties
java.io.IOException
- I/O exceptionpublic DBNode(Parser parser) throws java.io.IOException
parser
- parser
java.io.IOException
- I/O exceptionMethod Detail |
---|
public final void set(int p, int k)
p
- pre valuek
- node kindpublic final Data data()
Value
DBNode
and DBNodeSeq
.
data
in class Value
public final byte[] string()
ANode
string
in class ANode
public final long itr(InputInfo ii) throws QueryException
Item
itr
in class Item
ii
- input info
QueryException
- query exceptionpublic final double dbl(InputInfo ii) throws QueryException
Item
dbl
in class Item
ii
- input info
QueryException
- query exceptionpublic final byte[] name()
ANode
ANode.qname()
, as no QNm
instance is created.
name
in class ANode
public final QNm qname()
ANode
qname
in class ANode
public final QNm qname(QNm name)
ANode
ANode.qname()
, as an existing
QNm
instance is reused.
This function must only be called for elements, attributes and pi's.
qname
in class ANode
name
- temporary qname
public final Atts namespaces()
ANode
FElem
and DBNode
.
namespaces
in class ANode
public final byte[] baseURI()
ANode
baseURI
in class ANode
public final boolean is(ANode node)
ANode
is
in class ANode
node
- node to be compared
public final int diff(ANode node)
ANode
diff
in class ANode
node
- node to be compared
0
if the nodes are identical, or 1
/-1
if the node appears after/before the argumentpublic final DBNode copy()
ANode
copy
in class ANode
public final Value copy(QueryContext ctx, VarScope scp, IntObjMap<Var> vs)
Expr
copy
in class Value
ctx
- query contextscp
- variable scope for creating new variablesvs
- mapping from old variable IDs to new variable copies
public final DBNode dbCopy(Prop prop)
ANode
dbCopy
in class ANode
prop
- properties
public final DBNode deepCopy()
ANode
deepCopy
in class ANode
public final DBNode finish()
ANode
finish
in class ANode
public final ANode parent()
ANode
parent
in class ANode
public final DBNode parent(ANode p)
ANode
parent
in class ANode
p
- parent node
public final boolean hasChildren()
ANode
hasChildren
in class ANode
public final AxisIter ancestor()
ANode
ancestor
in class ANode
public final AxisIter ancestorOrSelf()
ANode
ancestorOrSelf
in class ANode
public final AxisMoreIter attributes()
ANode
attributes
in class ANode
public final AxisMoreIter children()
ANode
children
in class ANode
public final AxisIter descendant()
ANode
descendant
in class ANode
public final AxisIter descendantOrSelf()
ANode
descendantOrSelf
in class ANode
public final AxisIter following()
ANode
following
in class ANode
public final AxisIter followingSibling()
ANode
followingSibling
in class ANode
public final AxisIter parentIter()
ANode
parentIter
in class ANode
public final boolean sameAs(Expr cmp)
Expr
sameAs
in class Expr
cmp
- expression to be compared
public final void plan(FElem plan)
ExprInfo
plan
in class Item
plan
- root elementpublic final byte[] xdmInfo()
Item
xdmInfo
in class Item
public final Type.ID typeId()
Item
typeId
in class Item
public java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |