org.basex.query.xpath.expr
Class And
java.lang.Object
org.basex.query.ExprInfo
org.basex.query.xpath.expr.Expr
org.basex.query.xpath.expr.Arr
org.basex.query.xpath.expr.And
public final class And
- extends Arr
And expression.
- Author:
- Workgroup DBIS, University of Konstanz 2005-08, ISC License, Tim Petrowsky
Fields inherited from class org.basex.query.xpath.expr.Arr |
expr |
Constructor Summary |
And(Expr[] e)
Constructor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
And
public And(Expr[] e)
- Constructor.
- Parameters:
e
- expressions
eval
public Bln eval(XPContext ctx)
throws QueryException
- Description copied from class:
Expr
- Evaluates the expression with the specified context set. Additionally
provides a context
- Specified by:
eval
in class Expr
- Parameters:
ctx
- query context
- Returns:
- resulting XPathValue
- Throws:
QueryException
- evaluation exception
comp
public Expr comp(XPContext ctx)
throws QueryException
- Description copied from class:
Expr
- Optimizes the expression.
- Overrides:
comp
in class Arr
- Parameters:
ctx
- expression context
- Returns:
- optimized Expression
- Throws:
QueryException
- evaluation exception
indexEquivalent
public Expr indexEquivalent(XPContext ctx,
Step curr,
boolean seq)
throws QueryException
- Description copied from class:
Expr
- Returns an equivalent expression which accesses an index structure.
- Overrides:
indexEquivalent
in class Expr
- Parameters:
ctx
- rootcurr
- location stepseq
- flag for sequential evaluation
- Returns:
- Equivalent index-expression or null
- Throws:
QueryException
- evaluation exception
indexSizes
public int indexSizes(XPContext ctx,
Step curr,
int min)
- Description copied from class:
Expr
- Returns the number of results if this query is evaluated by an index.
If
Integer.MAX_VALUE
is returned, no index access is possible.
- Overrides:
indexSizes
in class Expr
- Parameters:
ctx
- rootcurr
- the current location stepmin
- current minimum index hits
- Returns:
- number of expected results
toString
public java.lang.String toString()
- Specified by:
toString
in class ExprInfo