org.ucl.xpath.ast
Class QuantifiedExpr

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.Expr
          extended byorg.ucl.xpath.ast.QuantifiedExpr

public class QuantifiedExpr
extends Expr

Support for Quantified expressions.


Field Summary
static int ALL
          Set internal value for ALL.
static int SOME
          Set internal value for SOME.
 
Constructor Summary
QuantifiedExpr(int type, java.util.Collection varexp, Expr ret)
          Constructor for QuantifiedExpr.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 Expr expr()
          Support for Expression interface.
 java.util.Iterator iterator()
          Support for Iterator inteface.
 void set_expr(Expr e)
          Set next expression.
 void truncate_pairs()
          Normalization of expression pairs.
 int type()
          Support for Integer interface.
 java.util.Collection ve_pairs()
          Support for Collection interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOME

public static final int SOME
Set internal value for SOME.

See Also:
Constant Field Values

ALL

public static final int ALL
Set internal value for ALL.

See Also:
Constant Field Values
Constructor Detail

QuantifiedExpr

public QuantifiedExpr(int type,
                      java.util.Collection varexp,
                      Expr ret)
Constructor for QuantifiedExpr.

Parameters:
type - Type (0 for SOME, 1 for ALL).
varexp - Expressions.
ret - Returned expression.
Method Detail

accept

public java.lang.Object accept(XPathVisitor v)
Support for Visitor interface.

Specified by:
accept in class XPathNode
Returns:
Result of Visitor operation.

type

public int type()
Support for Integer interface.

Returns:
Result of Int operation.

iterator

public java.util.Iterator iterator()
Support for Iterator inteface.

Returns:
Result of Iterator operation.

expr

public Expr expr()
Support for Expression interface.

Returns:
Result of Expr operation.

set_expr

public void set_expr(Expr e)
Set next expression.

Parameters:
e - Expression.

truncate_pairs

public void truncate_pairs()
Normalization of expression pairs.


ve_pairs

public java.util.Collection ve_pairs()
Support for Collection interface.

Returns:
Expression pairs.