| Modifier | Constructor and Description |
|---|---|
protected |
FItem(Type t)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
arity()
Number of arguments this function item takes.
|
abstract FItem |
coerceTo(FuncType ft,
QueryContext ctx,
InputInfo ii)
Coerces this function item to the given function type.
|
boolean |
eq(InputInfo ii,
Item it)
Checks the items for equality.
|
abstract QNm |
fName()
Name of this function,
null means anonymous function. |
Item |
invItem(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Iter |
invIter(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
abstract Value |
invValue(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
abstract void |
plan(Serializer ser)
Serializes the expression tree.
|
byte[] |
string(InputInfo ii)
Returns a string representation of the value.
|
java.lang.Object |
toJava()
Returns a Java representation of the value.
|
bool, comparable, dbl, dec, diff, ebv, equiv, flt, hash, homogenous, input, isItem, item, itemAt, iter, iterable, itr, score, score, serialize, size, test, type, writeTo, xdmInfocache, comp, count, data, description, info, isValue, iter, iterator, removable, remove, uses, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isVacuous, markTailCalls, sameAsprotected FItem(Type t)
t - typepublic abstract int arity()
public abstract QNm fName()
null means anonymous function.nullpublic abstract Value invValue(QueryContext ctx, InputInfo ii, Value... args) throws QueryException
ctx - query contextii - input infoargs - argumentsQueryException - query exceptionpublic Iter invIter(QueryContext ctx, InputInfo ii, Value... args) throws QueryException
ctx - query contextii - input infoargs - argumentsQueryException - query exceptionpublic Item invItem(QueryContext ctx, InputInfo ii, Value... args) throws QueryException
ctx - query contextii - input infoargs - argumentsQueryException - query exceptionpublic abstract FItem coerceTo(FuncType ft, QueryContext ctx, InputInfo ii) throws QueryException
ft - function typectx - query contextii - input infoQueryException - query exceptionpublic final byte[] string(InputInfo ii) throws QueryException
Itemstring in class Itemii - input info, use null if none is availableQueryException - if the item can't be atomizedpublic final boolean eq(InputInfo ii, Item it) throws QueryException
Itemeq in class Itemii - input infoit - item to be comparedQueryException - query exceptionpublic java.lang.Object toJava()
throws QueryException
ValuetoJava in class ValueQueryException - query exceptionpublic abstract void plan(Serializer ser) throws java.io.IOException
ExprInfo