org.basex.query.xpath.expr
Class InterSect

java.lang.Object
  extended by org.basex.query.xpath.expr.Expr
      extended by org.basex.query.xpath.expr.ArrayExpr
          extended by org.basex.query.xpath.expr.InterSect

public final class InterSect
extends ArrayExpr

XPath Intersect Expression. This expresses the intersection of two node sets.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Tim Petrowsky

Field Summary
 
Fields inherited from class org.basex.query.xpath.expr.ArrayExpr
exprs
 
Constructor Summary
InterSect(Expr[] e)
          Constructor.
 
Method Summary
 Expr compile(XPContext ctx)
          Tries to optimize the Expression.
 NodeSet eval(XPContext ctx)
          Evaluates the expression with the specified context set.
 
Methods inherited from class org.basex.query.xpath.expr.ArrayExpr
sameAs, toString, usesPos, usesSize
 
Methods inherited from class org.basex.query.xpath.expr.Expr
indexEquivalent, indexSizes, returnedValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterSect

public InterSect(Expr[] e)
Constructor.

Parameters:
e - operands expression
Method Detail

compile

public Expr compile(XPContext ctx)
             throws EvalException
Description copied from class: Expr
Tries to optimize the Expression.

Specified by:
compile in class Expr
Parameters:
ctx - expression context
Returns:
optimized Expression
Throws:
EvalException - evaluation exception

eval

public NodeSet eval(XPContext ctx)
             throws EvalException
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:
EvalException - evaluation exception