Package org.basex.query.value.node
Class FNode
java.lang.Object
org.basex.query.expr.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.FNode
Main-memory node fragment.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a light-weight, low-level attribute axis iterator withIter.size()andIter.get(long)implemented.Returns a light-weight, low-level child axis iterator.final BasicNodeIterReturns a light-weight, low-level descendant axis iterator.final BasicNodeIterReturns a light-weight, low-level descendant-or-self axis iterator.final intChecks the document order of two nodes.booleanThis function is e.g.finish()Returns a finalized node instance.booleanIndicates if the node has children.final inthashCode()final booleanChecks if two nodes are identical.final ANodeparent()Returns the parent node.final voidSets the parent node.byte[]string()Returns the string value.final BXNodetoJava()Returns a Java representation of the value.Methods inherited from class org.basex.query.value.node.ANode
ancestorIter, ancestorOrSelfIter, atomItem, atomItem, atomValue, attribute, attribute, baseURI, bool, comparable, copy, copy, ddo, diff, eq, followingIter, followingSiblingIter, kind, kind, materialize, name, namespaces, nodeType, nsScope, optimize, parentIter, precedingIter, precedingSiblingIter, qname, root, sameKey, selfIter, string, type, uriMethods inherited from class org.basex.query.value.item.Item
atomSize, cache, dbl, dec, description, ebv, equiv, flt, hash, input, instanceOf, item, itemAt, iter, itr, persistent, plan, refineType, reverse, score, seqType, size, subsequence, test, typeId, xdmInfoMethods inherited from class org.basex.query.value.Value
accept, checkUp, compile, copy, count, exprSize, has, inline, inlineable, isEmpty, isItem, iter, iterator, materialize, serialize, serialize, serialize, valueMethods inherited from class org.basex.query.expr.Expr
arg, args, atomIter, data, data, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, optimize, simplifyFor, typeCheck, uses, vacuous, visitAllMethods inherited from class org.basex.query.expr.ExprInfo
plan, toErrorString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
string
public byte[] string()Description copied from class:ANodeReturns the string value. -
finish
Description copied from class:ANodeReturns a finalized node instance. This method is called when iterating through node results: If a single node instances is recycled, it needs to be duplicated in the final step. -
is
Description copied from class:ANodeChecks if two nodes are identical. -
diff
Description copied from class:ANodeChecks the document order of two nodes. -
parent
Description copied from class:ANodeReturns the parent node. -
parent
Description copied from class:ANodeSets the parent node. -
attributeIter
Description copied from class:ANodeReturns a light-weight, low-level attribute axis iterator withIter.size()andIter.get(long)implemented. Before nodes are added to the result, they must be finalized viaANode.finish().- Specified by:
attributeIterin classANode- Returns:
- iterator
-
childIter
Description copied from class:ANodeReturns a light-weight, low-level child axis iterator. Before nodes are added to the result, they must be finalized viaANode.finish(). -
hasChildren
public boolean hasChildren()Description copied from class:ANodeIndicates if the node has children.- Specified by:
hasChildrenin classANode- Returns:
- result of test
-
descendantIter
Description copied from class:ANodeReturns a light-weight, low-level descendant axis iterator. Before nodes are added to the result, they must be finalized viaANode.finish().- Specified by:
descendantIterin classANode- Returns:
- iterator
-
descendantOrSelfIter
Description copied from class:ANodeReturns a light-weight, low-level descendant-or-self axis iterator. Before nodes are added to the result, they must be finalized viaANode.finish().- Specified by:
descendantOrSelfIterin classANode- Returns:
- iterator
-
toJava
Description copied from class:ValueReturns a Java representation of the value. -
hashCode
public final int hashCode() -
equals
Description copied from class:ExprThis function is e.g. called by:If.optimize(CompileContext),Switch.optimize(CompileContext),Typeswitch.optimize(CompileContext), in order to discard identical expressions.CmpR.mergeEbv(Expr, boolean, CompileContext)orCmpSR.mergeEbv(Expr, boolean, CompileContext), in order to merge expressions with identical input.CmpG.optimize(CompileContext)orCmpV.optimize(CompileContext), in order to pre-evaluate equality tests.CmpG.optimize(CompileContext)orPos.get(Expr, CmpV.OpV, InputInfo, CompileContext), in order to compare the start and end value.PathCache, in order to find identical root values at runtime.
-