com.satline.expr
Class BinaryTerm

java.lang.Object
  extended by com.satline.expr.BinaryTerm
All Implemented Interfaces:
Expression, java.io.Serializable
Direct Known Subclasses:
AdditionTerm, AndTerm, ConcatenationTerm, DivisionTerm, EqualityTerm, GreaterEqualTerm, GreaterTerm, InequalityTerm, InTerm, LessEqualTerm, LessTerm, LikeTerm, MatchTerm, MultiplicationTerm, NotInTerm, NotLikeTerm, OrTerm, SubtractionTerm

public abstract class BinaryTerm
extends java.lang.Object
implements Expression

This class defines a binary term (having two operands) within an expression.

Author:
Teubner
See Also:
Serialized Form

Field Summary
protected  Expression left
           
protected  Expression right
           
 
Constructor Summary
protected BinaryTerm()
          Default constructor.
protected BinaryTerm(Expression left, Expression right)
          Constructor using fields.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object against the specified object.
 Expression getLeft()
          Get left operand.
 Expression getRight()
          Get right operand.
 int hashCode()
           
 void setLeft(Expression left)
          Set left operand.
 void setRight(Expression right)
          Set right operand.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.satline.expr.Expression
greet
 

Field Detail

left

protected Expression left

right

protected Expression right
Constructor Detail

BinaryTerm

protected BinaryTerm()
Default constructor.


BinaryTerm

protected BinaryTerm(Expression left,
                     Expression right)
Constructor using fields.

Parameters:
left - left operand
right - right operand
Method Detail

getLeft

public Expression getLeft()
Get left operand.

Returns:
left operand.

setLeft

public void setLeft(Expression left)
Set left operand.

Parameters:
left - left operand.

getRight

public Expression getRight()
Get right operand.

Returns:
right operand.

setRight

public void setRight(Expression right)
Set right operand.

Parameters:
right - right operand.

equals

public boolean equals(java.lang.Object obj)
Compares this object against the specified object. The result is true if and only if the argument is not null and is a BinaryTerm object with equal operands and operator as this object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - - object to compare with
Returns:
true if the objects are the same, false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2007 null. All Rights Reserved.