org.basex.query.xquery.expr
Class CmpG
java.lang.Object
org.basex.query.xquery.expr.Expr
org.basex.query.xquery.expr.CmpG
public final class CmpG
- extends Expr
General comparison.
- Author:
- Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen
| Fields inherited from class org.basex.query.xquery.expr.Expr |
type |
|
Method Summary |
Expr |
comp(XQContext ctx)
Optimizes and compiles the expression tree. |
Bln |
eval(XQContext ctx)
Evaluates the expression and returns the resulting item. |
java.lang.String |
info()
Returns a string description of the expression. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CmpG
public CmpG(Expr e1,
Expr e2,
Cmp c)
- Constructor.
- Parameters:
e1 - first expressione2 - second expressionc - comparator
comp
public Expr comp(XQContext ctx)
throws XQException
- Description copied from class:
Expr
- Optimizes and compiles the expression tree.
- Parameters:
ctx - query context
- Returns:
- optimized Expression
- Throws:
XQException - evaluation exception
eval
public Bln eval(XQContext ctx)
throws XQException
- Description copied from class:
Expr
- Evaluates the expression and returns the resulting item.
- Specified by:
eval in class Expr
- Parameters:
ctx - query context
- Returns:
- resulting item
- Throws:
XQException - evaluation exception
info
public java.lang.String info()
- Description copied from class:
Expr
- Returns a string description of the expression. Contrary to the
Expr.toString() method, the current expressions aren't included
in the output.
- Specified by:
info in class Expr
- Returns:
- result of check
toString
public java.lang.String toString()
- Specified by:
toString in class Expr