public abstract class JavaMapping extends Arr
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
eval(Value[] args,
QueryContext qc)
Returns the result of the evaluated Java function.
|
boolean |
has(Expr.Flag flag)
Indicates if an expression has the specified compiler property.
|
Iter |
iter(QueryContext qc)
Evaluates the expression and returns an iterator on the resulting items.
|
static Value |
toValue(Object obj,
QueryContext qc,
StaticContext sc)
Converts the specified result to an XQuery value.
|
Value |
value(QueryContext qc)
Evaluates the expression and returns the resulting value.
|
accept, allAreValues, checkUp, compile, copyAll, count, exprSize, inline, oneIsEmpty, plan, removable, toString
atomItem, atomValue, checkAtomic, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, compBln, copyType, ctxValue, ebv, item, optPre, optPre, preEval, seqType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toEmptyNode, toEmptyToken, toFloat, toFunc, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNumber, toQNm, toQNm, toToken, toToken
atomIter, copy, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, isValue, iterable, markTailCalls, optimize, optimizeEbv, sameAs, typeCheck, uses, visitAll
addPlan, addPlan, description, planAttr, planElem, toErrorString, toString
public final Iter iter(QueryContext qc) throws QueryException
Expr
Expr.item(QueryContext, InputInfo)
must be implemented
by an expression, as it may be called by this method.iter
in class ParseExpr
qc
- query contextQueryException
- query exceptionpublic final Value value(QueryContext qc) throws QueryException
Expr
value
in class ParseExpr
qc
- query contextQueryException
- query exceptionprotected abstract Object eval(Value[] args, QueryContext qc) throws QueryException
args
- argumentsqc
- query contextQueryException
- query exceptionpublic static Value toValue(Object obj, QueryContext qc, StaticContext sc) throws QueryException
obj
- result objectqc
- query contextsc
- static contextQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.