Package org.basex.query.func.fn
Class DynamicFn
- java.lang.Object
-
- org.basex.query.expr.ExprInfo
-
- org.basex.query.expr.Expr
-
- org.basex.query.expr.ParseExpr
-
- org.basex.query.expr.Arr
-
- org.basex.query.func.StandardFunc
-
- org.basex.query.func.fn.DynamicFn
-
- Direct Known Subclasses:
Docs
,FnCurrentDate
,FnCurrentDateTime
,FnCurrentTime
,FnImplicitTimezone
public abstract class DynamicFn extends StandardFunc
Function based on dynamic context properties (date, etc.).- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Field Summary
-
Fields inherited from class org.basex.query.func.StandardFunc
definition
-
-
Constructor Summary
Constructors Constructor Description DynamicFn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Expr
opt(CompileContext cc)
Performs function-specific optimizations.-
Methods inherited from class org.basex.query.func.StandardFunc
arity, checkPerm, coerceFunc, coerceFunc, compileData, copy, dataLock, defined, description, embed, equals, has, hasCTX, hasUPD, hofIndex, invoke, optFirst, optFirst, optimize, refineFunc, serialize, simplifyArgs, test, toBaseUri, toBindings, toCollation, toCollation, toContent, toContent, toData, toDate, toDBNode, toEncodingOrNull, toEncodingOrNull, toFunction, toFunction, toFunctionOrNull, toGregorian, toIO, toIO, toMs, toName, toNodeOrAtomItem, toOptions, toOptions, toOptions, toPath, toPath, toSerializerOptions, toStr, toString, toXml, toZeroStr, vacuous
-
Methods inherited from class org.basex.query.expr.Arr
accept, arg, args, checkUp, compile, copyAll, count, exprSize, flatten, inline, inlineable, mayBePositional, removeEmpty, simplifyAll, values
-
Methods inherited from class org.basex.query.expr.ParseExpr
adoptType, atomValue, checkAllUp, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, data, info, item, iter, refineType, sc, seqType, size, test, toArray, toArray, toAtomItem, toBin, toBin, toBinOrNull, toBoolean, toBoolean, toBooleanOrFalse, toBytes, toBytes, toDouble, toDouble, toElem, toElem, toEnum, toFloat, toFunction, toLong, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumber, toNumberOrNull, toQNm, toQNmOrNull, toRecord, toString, toString, toStringOrNull, toToken, toToken, toTokenOrNull, toZeroToken, value
-
Methods inherited from class org.basex.query.expr.Expr
arg, atomItem, atomIter, ddo, funcType, hasFreeVars, indexAccessible, info, isSimple, markTailCalls, mergeEbv, optimizePos, simplify, simplifyFor, typeCheck, uses, visitAll
-
Methods inherited from class org.basex.query.expr.ExprInfo
toErrorString, toString
-
-
-
-
Method Detail
-
opt
protected Expr opt(CompileContext cc) throws QueryException
Description copied from class:StandardFunc
Performs function-specific optimizations.- Overrides:
opt
in classStandardFunc
- Parameters:
cc
- compilation context- Returns:
- optimized or original expression
- Throws:
QueryException
- query exception
-
-