Package org.basex.query.value.node
Class FDoc
Document node fragment.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a node and updates its parent reference.byte[]baseURI()Returns the base URI of the node.Returns a light-weight, low-level child axis iterator.booleanThis function is e.g.booleanIndicates if the node has children.materialize(QueryContext qc, boolean copy) Returns a materialized, context-independent version of this item.optimize()Minimizes the memory consumption of the node.voidCreates a query plan.voidplan(QueryString qs) Creates a query string.byte[]string()Returns the string value.typeId()Returns a type id.byte[]xdmInfo()Returns data model info.Methods inherited from class org.basex.query.value.node.FNode
attributeIter, descendantIter, descendantOrSelfIter, diff, finish, hashCode, is, parent, parent, toJavaMethods inherited from class org.basex.query.value.node.ANode
ancestorIter, ancestorOrSelfIter, atomItem, atomItem, atomValue, attribute, attribute, bool, comparable, copy, copy, ddo, diff, eq, followingIter, followingSiblingIter, kind, kind, name, namespaces, nodeType, nsScope, 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, refineType, reverse, score, seqType, size, subsequence, testMethods 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
toErrorString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FDoc
public FDoc()Constructor. -
FDoc
Constructor.- Parameters:
uri- base uri
-
FDoc
public FDoc(byte[] uri) Constructor.- Parameters:
uri- base uri
-
FDoc
Constructor.- Parameters:
children- childrenuri- base uri
-
FDoc
Constructor for DOM nodes. Originally provided by Erdal Karaca.- Parameters:
doc- DOM nodebu- base uri
-
-
Method Details
-
optimize
Description copied from class:ANodeMinimizes the memory consumption of the node. -
add
Adds a node and updates its parent reference.- Parameters:
node- node to be added- Returns:
- self reference
-
string
public byte[] string()Description copied from class:ANodeReturns the string value. -
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.- Overrides:
hasChildrenin classFNode- Returns:
- result of test
-
baseURI
public byte[] baseURI()Description copied from class:ANodeReturns the base URI of the node. -
materialize
Description copied from class:ItemReturns a materialized, context-independent version of this item.- Specified by:
materializein classANode- Parameters:
qc- query context (ifnull, process cannot be interrupted)copy- create full copy- Returns:
- item copy, or
null) if the item cannot be materialized
-
xdmInfo
public byte[] xdmInfo()Description copied from class:Item -
typeId
Description copied from class:Item -
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.
-
plan
Description copied from class:ExprInfoCreates a query plan. -
plan
Description copied from class:ExprInfoCreates a query string.
-