|
||||||||||
| 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 flag| Method Detail |
|---|
public Expr comp(QueryContext ctx)
throws QueryException
Expr
comp in class Singlectx - query context
QueryException - query exception
public Item atomic(QueryContext ctx)
throws QueryException
Exprnull reference.
If this method is not overwritten, Expr.iter(org.basex.query.QueryContext) must be implemented.
atomic in class Exprctx - query context
QueryException - query exception
public void plan(Serializer ser)
throws IOException
ExprInfo
plan in class Singleser - 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 | |||||||||