common-util

local.tomas.expr
Class UnaryTerm

java.lang.Object
  extended by local.tomas.expr.UnaryTerm
All Implemented Interfaces:
Serializable, Expression
Direct Known Subclasses:
AbsFunctionTerm, IsNotNullTerm, IsNullTerm, LengthFunctionTerm, LowerFunctionTerm, NegationTerm, SignChangeTerm, TrimFunctionTerm, UpperFunctionTerm

public abstract class UnaryTerm
extends Object
implements Expression

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

Author:
Teubner
See Also:
Serialized Form

Constructor Summary
protected UnaryTerm()
          Default constructor.
protected UnaryTerm(Expression operand)
          Constructor from attributes.
 
Method Summary
 boolean equals(Object obj)
          Compares this object against the specified object.
 Expression getOperand()
          Get operand.
 int hashCode()
           
 void setOperand(Expression operand)
          Set operand.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface local.tomas.expr.Expression
greet
 

Constructor Detail

UnaryTerm

protected UnaryTerm()
Default constructor.


UnaryTerm

protected UnaryTerm(Expression operand)
Constructor from attributes.

Parameters:
operand - operand
Method Detail

getOperand

public Expression getOperand()
Get operand.

Returns:
operand.

setOperand

public void setOperand(Expression operand)
Set operand.

Parameters:
operand - operand of term.

equals

public boolean equals(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 UnaryTerm object with equal operand and operator as this object.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

common-util

Copyright © 2005-2007 Tomas Teubner. All Rights Reserved.