org.basex.query.func
Class FunJava
java.lang.Object
org.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.Arr
org.basex.query.func.FunJava
public final class FunJava
- extends Arr
Java function definition.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen
| Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
Expr.Use |
| Fields inherited from class org.basex.query.expr.Arr |
expr |
|
Method Summary |
String |
info()
Returns a string description of the expression. |
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the
specified serializer. |
String |
toString()
|
static Type |
type(Object o)
Returns an appropriate XQuery data type for the specified Java object. |
| Methods inherited from class org.basex.query.expr.Expr |
addText, atomic, checkCtx, checkDbl, checkItr, e, ebv, i, indexAccessible, returned, sameAs, size, test, v |
FunJava
public FunJava(Class<?> c,
String m,
Expr[] a)
- Constructor.
- Parameters:
c - Java classm - Java method/fielda - arguments
iter
public Iter iter(QueryContext ctx)
throws QueryException
- Description copied from class:
Expr
- Evaluates the expression and returns an iterator on the resulting items.
If this method is not overwritten,
Expr.atomic(org.basex.query.QueryContext) must be implemented.
- Overrides:
iter in class Expr
- Parameters:
ctx - query context
- Returns:
- resulting item
- Throws:
QueryException - query exception
type
public static Type type(Object o)
- Returns an appropriate XQuery data type for the specified Java object.
- Parameters:
o - object
- Returns:
- xquery type
plan
public void plan(Serializer ser)
throws IOException
- Description copied from class:
ExprInfo
- Recursively sends the abstract syntax of this expression to the
specified serializer.
- Overrides:
plan in class Arr
- Parameters:
ser - serializer
- Throws:
IOException - I/O exception
info
public String info()
- Description copied from class:
ExprInfo
- Returns a string description of the expression. Contrary to the
ExprInfo.toString() method, arguments are not included
in the output.
- Overrides:
info in class ExprInfo
- Returns:
- result of check
toString
public String toString()
- Specified by:
toString in class ExprInfo