|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xpath.expr.Expr
org.basex.query.xpath.func.Func
public abstract class Func
Interface for XPath functions.
| Field Summary | |
|---|---|
java.lang.String |
desc
Function description. |
| Constructor Summary | |
|---|---|
Func(Expr[] arg,
java.lang.String dsc)
Function constructor. |
|
| Method Summary | |
|---|---|
abstract boolean |
checkArguments()
Checks validity/number of arguments. |
Expr |
compile(XPContext ctx)
Tries to optimize the Expression. |
Item[] |
evalArgs(XPContext ctx)
Evaluates the arguments. |
java.lang.String |
toString()
|
boolean |
usesPos()
Checks whether this Expression (or its children) make use of the position parameter. |
boolean |
usesSize()
Checks whether this Expression (or its children) make use of the setsize parameter. |
| Methods inherited from class org.basex.query.xpath.expr.Expr |
|---|
eval, indexEquivalent, indexSizes, returnedValue, sameAs |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String desc
| Constructor Detail |
|---|
public Func(Expr[] arg,
java.lang.String dsc)
arg - argumentsdsc - expected function pattern| Method Detail |
|---|
public abstract boolean checkArguments()
public Expr compile(XPContext ctx)
throws EvalException
Expr
compile in class Exprctx - expression context
EvalException - evaluation exception
public final Item[] evalArgs(XPContext ctx)
throws EvalException
ctx - query context
EvalException - evaluation exceptionpublic final java.lang.String toString()
toString in class Exprpublic boolean usesPos()
Expr
usesPos in class Exprpublic boolean usesSize()
Expr
usesSize in class Expr
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||