org.ucl.xpath.ast
Class TreatAsExpr

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.Expr
          extended byorg.ucl.xpath.ast.BinExpr
              extended byorg.ucl.xpath.ast.TreatAsExpr

public class TreatAsExpr
extends BinExpr

Support for Treat operation. This does not change the value of the operand, rather it ensues the operand has a correct type at evaluation time.


Constructor Summary
TreatAsExpr(Expr l, SequenceType r)
          Constructor for TreatAsExpr.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 
Methods inherited from class org.ucl.xpath.ast.BinExpr
left, right, set_left, set_right
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreatAsExpr

public TreatAsExpr(Expr l,
                   SequenceType r)
Constructor for TreatAsExpr.

Parameters:
l - xpath expression/variable.
r - SequenceType to treat as.
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.