|
||||||||||
| 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.expr.Pos
public final class Pos
Position test.
| Field Summary | |
|---|---|
int |
max
Maximum value. |
int |
min
Minimum value. |
| Constructor Summary | |
|---|---|
Pos(int p)
Constructor. |
|
Pos(int mn,
int mx)
Constructor. |
|
| Method Summary | |
|---|---|
Expr |
comp(XPContext ctx)
Optimizes the expression. |
static Expr |
create(double val,
Comp type)
Creates a position predicate, a false predicate for impossible comparisons or a null reference. |
Bln |
eval(XPContext ctx)
Evaluates the expression with the specified context set. |
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 |
|---|
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 int min
public int max
| Constructor Detail |
|---|
public Pos(int p)
p - position
public Pos(int mn,
int mx)
mn - minimummx - maximum| Method Detail |
|---|
public static Expr create(double val,
Comp type)
null reference.
val - position valuetype - comparison type
public Expr comp(XPContext ctx)
Expr
comp in class Exprctx - expression context
public Bln eval(XPContext ctx)
throws QueryException
Expr
eval in class Exprctx - query context
QueryException - evaluation exceptionpublic boolean usesPos()
Expr
usesPos in class Exprpublic boolean usesSize()
Expr
usesSize in class Expr
public void plan(Serializer ser)
throws java.io.IOException
ExprInfo
plan in class ExprInfoser - serializer
java.io.IOException - exceptionpublic java.lang.String toString()
toString in class ExprInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||