Package org.basex.query.value.item
Class FItem
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.item.FItem
- All Implemented Interfaces:
Iterable<Item>,XQFunction,XQFunctionExpr
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AnnListAnnotations of this function.abstract FItemcoerceTo(FuncType ft, QueryContext qc, InputInfo ii, boolean optimize) Coerces this function item to the given function type.abstract booleanPerforms a deep comparison of two items.final booleaneq(Item item, Collation coll, StaticContext sc, InputInfo ii) Compares the items for equality.final FuncTypefuncType()Returns the function type of this expression.voidrefineType(Expr expr) Refines the expression type.final booleanCompares the items for equality.final byte[]Returns a string representation of the value.Methods inherited from class org.basex.query.value.item.Item
atomItem, atomSize, atomValue, bool, cache, comparable, dbl, ddo, dec, description, diff, ebv, equiv, flt, hash, input, instanceOf, item, itemAt, iter, itr, materialize, persistent, plan, 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, toJava, valueMethods inherited from class org.basex.query.expr.Expr
arg, args, atomIter, data, data, equals, 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, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.basex.query.func.XQFunction
invoke, invokeInternal, invokeTail, stackFrameSizeMethods inherited from interface org.basex.query.func.XQFunctionExpr
arity, funcName, inline, paramName, vacuousBody
-
Constructor Details
-
FItem
Constructor.- Parameters:
type- typeanns- this function item's annotations
-
-
Method Details
-
annotations
Description copied from interface:XQFunctionExprAnnotations of this function.- Specified by:
annotationsin interfaceXQFunctionExpr- Returns:
- this function's annotations
-
string
Description copied from class:ItemReturns a string representation of the value.- Specified by:
stringin classItem- Parameters:
ii- input info (can benull)- Returns:
- string value
- Throws:
QueryException- if the item cannot be atomized (caused by function or streaming items)
-
eq
public final boolean eq(Item item, Collation coll, StaticContext sc, InputInfo ii) throws QueryException Description copied from class:ItemCompares the items for equality.- Specified by:
eqin classItem- Parameters:
item- item to be comparedcoll- collation (can benull)sc- static context; required for comparing items of type xs:QName (can benull)ii- input info (can benull)- Returns:
- result of check
- Throws:
QueryException- query exception
-
sameKey
Description copied from class:ItemCompares the items for equality. -
refineType
Description copied from class:ExprRefines the expression type.- Overrides:
refineTypein classItem- Parameters:
expr- original expression
-
funcType
Description copied from class:ExprReturns the function type of this expression.- Specified by:
funcTypein interfaceXQFunctionExpr- Overrides:
funcTypein classExpr- Returns:
- function type, or
nullif expression yields no functions
-
coerceTo
public abstract FItem coerceTo(FuncType ft, QueryContext qc, InputInfo ii, boolean optimize) throws QueryException Coerces this function item to the given function type.- Parameters:
ft- function typeqc- query contextii- input infooptimize- optimize resulting item- Returns:
- coerced item
- Throws:
QueryException- query exception
-
deep
Performs a deep comparison of two items.- Parameters:
item- item to be comparedcoll- collation (can benull)ii- input info- Returns:
- result of check
- Throws:
QueryException- query exception
-