org.ucl.xpath.ast
Class IfExpr

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

public class IfExpr
extends Expr

Support for IF expressions.


Constructor Summary
IfExpr(java.util.Collection exps, Expr t, Expr e)
          Constructor for IfExpr.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 Expr else_clause()
          Support for Expression interface.
 java.util.Iterator iterator()
          Support for Iterator interface.
 Expr then_clause()
          Support for Expression interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfExpr

public IfExpr(java.util.Collection exps,
              Expr t,
              Expr e)
Constructor for IfExpr.

Parameters:
exps - Condition expressions.
t - If true expressions.
e - If false/else expressions.
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.

iterator

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

Returns:
Result of Iterator operation.

then_clause

public Expr then_clause()
Support for Expression interface.

Returns:
Result of Expr operation.

else_clause

public Expr else_clause()
Support for Expression interface.

Returns:
Result of Expr operation.