com.novell.xml.xpath
Class BinaryExpr

java.lang.Object
  extended bycom.novell.xml.xpath.BinaryExpr
All Implemented Interfaces:
Expression
Direct Known Subclasses:
BooleanExpr, NumberExpr, UnionExpr

public abstract class BinaryExpr
extends Object
implements Expression

Base class for binary operand expressions.


Field Summary
protected  Expression lhs
           
protected  Expression rhs
           
 
Constructor Summary
protected BinaryExpr(Expression lhs, Expression rhs)
          Construct the binary expression.
 
Method Summary
 void dump(PrintWriter writer, int indent)
          Print the expression in a readable form for debugging.
 boolean isConstant()
          Return true if the expression is a constant value.
 void registerForReset(XPathResetRegistrar registrar)
          Register this expression or any subexpression that implements XPathResetCache with an object that wants to call resetCache()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.novell.xml.xpath.Expression
evaluate, getResultType
 

Field Detail

lhs

protected Expression lhs

rhs

protected Expression rhs
Constructor Detail

BinaryExpr

protected BinaryExpr(Expression lhs,
                     Expression rhs)
Construct the binary expression.

Parameters:
lhs - The left hand operand.
rhs - The right-hand operand.
Method Detail

isConstant

public boolean isConstant()
Return true if the expression is a constant value.

Specified by:
isConstant in interface Expression
Returns:
True is expression is constant, false otherwise.

registerForReset

public void registerForReset(XPathResetRegistrar registrar)
Register this expression or any subexpression that implements XPathResetCache with an object that wants to call resetCache()

Specified by:
registerForReset in interface Expression

dump

public void dump(PrintWriter writer,
                 int indent)
Print the expression in a readable form for debugging.

Specified by:
dump in interface Expression
Parameters:
writer - The output device.
indent - Number of tabs to indent the result.