Modifier and Type | Field and Description |
---|---|
Data |
data
Data reference.
|
int |
pre
Pre value.
|
Constructor and Description |
---|
DBNode(Data data)
Constructor, creating a document node from the specified data reference.
|
DBNode(Data data,
int pre)
Constructor, creating a node from the specified data reference.
|
DBNode(Data data,
int pre,
int kind)
Constructor, specifying full node information.
|
DBNode(IO input)
Constructor, specifying an XML input reference.
|
DBNode(Parser parser)
Constructor, specifying a parser reference.
|
Modifier and Type | Method and Description |
---|---|
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 qc,
VarScope scp,
IntObjMap<Var> vs)
Copies an expression.
|
Data |
data()
Returns the data reference bound to this expression.
|
DBNode |
dbCopy(MainOptions opts)
Returns a database node representation of the node.
|
double |
dbl(InputInfo ii)
Returns a double representation of the value.
|
DBNode |
deepCopy(MainOptions options)
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.
|
protected 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.
|
byte[] |
string()
Returns the string value.
|
String |
toErrorString()
Returns a string representation of the expression that can be embedded in error messages.
|
String |
toString() |
Type.ID |
typeId()
Returns a type id.
|
byte[] |
xdmInfo()
Returns data model info.
|
atomItem, attribute, attribute, attribute, bool, diff, eq, kind, kind, nodeType, nsScope, optimize, preceding, precedingSibling, self, string, toJava, type, uri
atomItem, atomSize, atomValue, comparable, dec, description, ebv, equiv, flt, hash, homogeneous, input, item, itemAt, iter, iterable, materialize, score, score, seqType, size, test, writeTo
accept, atomValue, cache, checkUp, compile, count, exprSize, has, inline, isValue, iter, iterator, removable, serialize, serialize, value
atomIter, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, optimizeEbv, typeCheck, uses, visitAll
public final Data data
public int pre
public DBNode(Data data)
data
- data referencepublic DBNode(Data data, int pre)
data
- data referencepre
- pre valuepublic DBNode(Data data, int pre, int kind)
data
- data referencepre
- pre valuekind
- node kindpublic DBNode(IO input) throws IOException
input
- input referenceIOException
- I/O exceptionpublic DBNode(Parser parser) throws IOException
parser
- parserIOException
- I/O exceptionpublic final byte[] string()
ANode
public final long itr(InputInfo ii) throws QueryException
Item
itr
in class Item
ii
- input infoQueryException
- query exceptionpublic final double dbl(InputInfo ii) throws QueryException
Item
dbl
in class Item
ii
- input infoQueryException
- query exceptionpublic final byte[] name()
ANode
ANode.qname()
, as no QNm
instance is created.public final QNm qname()
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.public final Atts namespaces()
ANode
namespaces
in class ANode
public final byte[] baseURI()
ANode
public final boolean is(ANode node)
ANode
public final int diff(ANode node)
ANode
public final Value copy(QueryContext qc, VarScope scp, IntObjMap<Var> vs)
Expr
public final DBNode dbCopy(MainOptions opts)
ANode
public final DBNode deepCopy(MainOptions options)
ANode
public final DBNode finish()
ANode
protected final DBNode parent(ANode p)
ANode
public final boolean hasChildren()
ANode
hasChildren
in class ANode
public final AxisIter ancestor()
ANode
public final AxisIter ancestorOrSelf()
ANode
ancestorOrSelf
in class ANode
public final AxisMoreIter attributes()
ANode
attributes
in class ANode
public final AxisMoreIter children()
ANode
public final AxisIter descendant()
ANode
descendant
in class ANode
public final AxisIter descendantOrSelf()
ANode
descendantOrSelf
in class ANode
public final AxisIter following()
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
public final void plan(FElem plan)
ExprInfo
public final byte[] xdmInfo()
Item
public String toErrorString()
ExprInfo
ExprInfo.toString()
.toErrorString
in class ExprInfo
Copyright © 2005–2015 BaseX Team. All rights reserved.