org.ucl.xpath.ast
Class BinExpr

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.Expr
          extended byorg.ucl.xpath.ast.BinExpr
Direct Known Subclasses:
AddExpr, AndExpr, CastableExpr, CastExpr, CmpExpr, DivExpr, ExceptExpr, IDivExpr, InstOfExpr, IntersectExpr, ModExpr, MulExpr, OrExpr, PipeExpr, RangeExpr, SubExpr, TreatAsExpr, UnionExpr

public abstract class BinExpr
extends Expr

Abstract class for a Binary operation.


Constructor Summary
BinExpr(XPathNode l, XPathNode r)
          Constructor for BinExpr.
 
Method Summary
 XPathNode left()
          Left xpath node.
 XPathNode right()
          Right xpath node.
 void set_left(XPathNode n)
          Set the left xpath node.
 void set_right(XPathNode n)
          Set the right xpath node.
 
Methods inherited from class org.ucl.xpath.ast.XPathNode
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinExpr

public BinExpr(XPathNode l,
               XPathNode r)
Constructor for BinExpr.

Parameters:
l - left xpath node for the operation.
r - right xpath node for the operation.
Method Detail

left

public XPathNode left()
Left xpath node.

Returns:
Left node.

right

public XPathNode right()
Right xpath node.

Returns:
Right node.

set_left

public void set_left(XPathNode n)
Set the left xpath node.

Parameters:
n - Left node.

set_right

public void set_right(XPathNode n)
Set the right xpath node.

Parameters:
n - Right node.