|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.Single
org.basex.query.expr.Func
public final class Func
User defined function.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Use |
Field Summary | |
---|---|
Var[] |
args
Arguments. |
boolean |
decl
Declaration flag. |
boolean |
updating
Updating flag. |
Var |
var
Function name, including return type. |
Fields inherited from class org.basex.query.expr.Single |
---|
expr |
Constructor Summary | |
---|---|
Func(Var v,
Var[] a,
boolean d)
Function constructor. |
Method Summary | |
---|---|
Item |
atomic(QueryContext ctx)
Evaluates the expression and returns the resulting item or a null reference. |
Expr |
comp(QueryContext ctx)
Optimizes and compiles the expression. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
String |
toString()
|
Methods inherited from class org.basex.query.expr.Single |
---|
remove, uses |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, iter, removable, returned, sameAs, size, test, v |
Methods inherited from class org.basex.query.ExprInfo |
---|
color, info, name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Var var
public Var[] args
public boolean decl
public boolean updating
Constructor Detail |
---|
public Func(Var v, Var[] a, boolean d)
v
- function namea
- argumentsd
- declaration flagMethod Detail |
---|
public Expr comp(QueryContext ctx) throws QueryException
Expr
comp
in class Single
ctx
- query context
QueryException
- query exceptionpublic Item atomic(QueryContext ctx) throws QueryException
Expr
null
reference.
If this method is not overwritten, Expr.iter(org.basex.query.QueryContext)
must be implemented.
atomic
in class Expr
ctx
- query context
QueryException
- query exceptionpublic void plan(Serializer ser) throws IOException
ExprInfo
plan
in class Single
ser
- serializer
IOException
- I/O exceptionpublic String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |