Package org.basex.query.value.node
Class FPI
PI node fragment.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]Closing characters.static final byte[]Opening characters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis function is e.g.materialize(QueryContext qc, boolean copy) Returns a materialized, context-independent version of this item.byte[]name()Returns the name (optional prefix, local name) of an attribute, element or processing instruction.static byte[]Checks the specified token for validity.voidCreates a query plan.voidplan(QueryString qs) Creates a query string.qname()Returns the QName (optional prefix, local name) of an attribute, element or processing instruction.Methods inherited from class org.basex.query.value.node.FNode
attributeIter, childIter, descendantIter, descendantOrSelfIter, diff, finish, hasChildren, hashCode, is, parent, parent, string, toJavaMethods 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, namespaces, nodeType, nsScope, optimize, parentIter, precedingIter, precedingSiblingIter, 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, 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
toErrorString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
OPEN
public static final byte[] OPENOpening characters. -
CLOSE
public static final byte[] CLOSEClosing characters.
-
-
Constructor Details
-
FPI
Constructor for creating a processing instruction.- Parameters:
name- namevalue- value
-
FPI
Constructor for creating a processing instruction.- Parameters:
name- namevalue- value
-
FPI
Constructor for creating a processing instruction from a DOM node. Originally provided by Erdal Karaca.- Parameters:
pi- DOM node
-
-
Method Details
-
qname
Description copied from class:ANodeReturns the QName (optional prefix, local name) of an attribute, element or processing instruction. -
name
public byte[] name()Description copied from class:ANodeReturns the name (optional prefix, local name) of an attribute, element or processing instruction. This function is possibly evaluated faster thanANode.qname(), as noQNminstance may need to be created. -
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
-
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. -
parse
Checks the specified token for validity.- Parameters:
atom- token to be checkedii- input info- Returns:
- token
- Throws:
QueryException- query exception
-