public abstract class JavaMapping extends Arr
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
eval(Value[] args)
Returns the result of the evaluated Java function.
|
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items.
|
static Value |
toValue(java.lang.Object res)
Converts the specified result to an XQuery value.
|
static Type |
type(java.lang.Object o)
Returns an appropriate XQuery data type for the specified Java object.
|
Value |
value(QueryContext ctx)
Evaluates the expression and returns the resulting value.
|
allAreValues, comp, count, indexEquivalent, plan, removable, remove, toString, usescheckBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkIO, checkItem, checkItr, checkItr, checkMap, checkNode, checkNoEmpty, checkStr, checkType, checkUp, checkUp, checkWrite, compBln, ebv, item, optPre, preEval, size, test, typeaddText, compEbv, hasFreeVars, indexAccessible, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCalls, sameAsdescription, info, toStringpublic final Iter iter(QueryContext ctx) throws QueryException
ExprExpr.item(org.basex.query.QueryContext, org.basex.util.InputInfo) must be implemented
by an expression, as it may be called by this method.iter in class ParseExprctx - query contextQueryException - query exceptionpublic final Value value(QueryContext ctx) throws QueryException
Exprvalue in class ParseExprctx - query contextQueryException - query exceptionprotected abstract java.lang.Object eval(Value[] args) throws QueryException
args - argumentsQueryException - query exceptionpublic static Value toValue(java.lang.Object res) throws QueryException
res - result objectQueryException - query exceptionpublic static Type type(java.lang.Object o)
o - objectnull if no appropriate type was found