|
||||||||||
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.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 |
comp(XPContext ctx)
Optimizes the expression. |
Item[] |
evalArgs(XPContext ctx)
Evaluates the arguments. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
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 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 final java.lang.String desc
Constructor Detail |
---|
public Func(Expr[] arg, java.lang.String dsc)
arg
- argumentsdsc
- expected function patternMethod Detail |
---|
public final Item[] evalArgs(XPContext ctx) throws QueryException
ctx
- query context
QueryException
- evaluation exceptionpublic abstract boolean checkArguments()
public boolean usesSize()
Expr
usesSize
in class Expr
public boolean usesPos()
Expr
usesPos
in class Expr
public Expr comp(XPContext ctx) throws QueryException
Expr
comp
in class Expr
ctx
- expression context
QueryException
- evaluation exceptionpublic final java.lang.String toString()
toString
in class ExprInfo
public final void plan(Serializer ser) throws java.io.IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
java.io.IOException
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |