Package org.basex.query.func.fn
Class FnTokenize
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.FnTokenize
Function implementation.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.query.func.StandardFunc
definition, sc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Expropt(CompileContext cc) Performs function specific optimizations.protected final Patternpattern(Expr regex, Expr modifier, QueryContext qc, boolean check) Returns a regular expression pattern.protected final org.basex.query.func.fn.RegEx.RegExprregExpr(Expr regex, Expr modifier, QueryContext qc, boolean check) Returns a regular expression pattern.value(QueryContext qc) Evaluates the expression and returns the resulting value.booleanIndicates if a default whitespace tokenization is to be performed.Methods inherited from class org.basex.query.func.StandardFunc
checkAdmin, checkArity, checkArity, checkCreate, checkData, checkPath, checkPath, coerceFunc, compileData, copy, data, data, dataLock, dateTimeToMs, description, equals, has, optFirst, optFirst, optimize, plan, plan, serialize, simplifyArgs, toBaseUri, toBindings, toCollation, toDate, toDBNode, toEncodingOrNull, toNodeOrAtomItem, toOptions, toPath, toPath, toQuery, toQuery, vacuousMethods inherited from class org.basex.query.expr.Arr
accept, allAreValues, args, checkUp, compile, copyAll, count, exprSize, flatten, inline, inline, inlineable, mayBePositional, simplifyAllMethods inherited from class org.basex.query.expr.ParseExpr
adoptType, atomValue, checkAllUp, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, ebv, item, iter, refineType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toFloat, toFunc, toItem, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumberOrNull, toQNm, toQNm, toToken, toToken, toTokenOrNull, toZeroTokenMethods inherited from class org.basex.query.expr.Expr
arg, atomItem, atomIter, ddo, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, simplifyFor, typeCheck, uses, visitAllMethods inherited from class org.basex.query.expr.ExprInfo
toErrorString, toString
-
Constructor Details
-
FnTokenize
public FnTokenize()
-
-
Method Details
-
value
Description copied from class:ExprEvaluates the expression and returns the resulting value. If this method is not implemented,Expr.item(QueryContext, InputInfo)must be implemented instead.- Overrides:
valuein classParseExpr- Parameters:
qc- query context- Returns:
- value
- Throws:
QueryException- query exception
-
opt
Description copied from class:StandardFuncPerforms function specific optimizations.- Overrides:
optin classStandardFunc- Parameters:
cc- compilation context- Returns:
- optimized or original expression
- Throws:
QueryException- query exception
-
whitespaces
public boolean whitespaces()Indicates if a default whitespace tokenization is to be performed.- Returns:
- result of check
-
pattern
protected final Pattern pattern(Expr regex, Expr modifier, QueryContext qc, boolean check) throws QueryException Returns a regular expression pattern.- Parameters:
regex- patternmodifier- modifier itemqc- query contextcheck- check result for empty strings- Returns:
- pattern modifier
- Throws:
QueryException- query exception
-
regExpr
protected final org.basex.query.func.fn.RegEx.RegExpr regExpr(Expr regex, Expr modifier, QueryContext qc, boolean check) throws QueryException Returns a regular expression pattern.- Parameters:
regex- patternmodifier- modifier itemqc- query contextcheck- check result for empty strings- Returns:
- pattern modifier
- Throws:
QueryException- query exception
-