com.novell.xml.xpath
Class BinaryExpr
java.lang.Object
com.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.
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 |
lhs
protected Expression lhs
rhs
protected Expression rhs
BinaryExpr
protected BinaryExpr(Expression lhs,
Expression rhs)
- Construct the binary expression.
- Parameters:
lhs
- The left hand operand.rhs
- The right-hand operand.
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.