net.sf.dewdrop.sqlml.expr
Class Expression

java.lang.Object
  extended bynet.sf.dewdrop.sqlml.SqlmlComponent
      extended bynet.sf.dewdrop.sqlml.expr.Expression
Direct Known Subclasses:
BooleanExpression

public abstract class Expression
extends SqlmlComponent

Author:
Les Hazlewood

Field Summary
protected static int DEFAULT_OPERAND_COUNT
           
protected  int maxOperands
           
protected  List operands
          A List of SqlmlComponents.
 
Fields inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
indentLevel, logger
 
Constructor Summary
protected Expression()
           
 
Method Summary
 void addOperand(Object operand)
          Adds the specified operand to the end of this expression's operand list.
 boolean equals(Object toCheck)
           
 int getMaxOperands()
           
 int getNumOperands()
           
 Object getOperand(int index)
           
 int hashCode()
           
protected  void setMaxOperands(int maxAllowed)
           
 void setOperand(int index, Object operand)
           
 
Methods inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
getIndentLevel, i18n, i18n, i18n, onWriteSql, setIndentLevel, toSql, toSql, toSql, toString, writeSql, writeSql, writeSql
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_OPERAND_COUNT

protected static final int DEFAULT_OPERAND_COUNT
See Also:
Constant Field Values

maxOperands

protected int maxOperands

operands

protected final List operands
A List of SqlmlComponents.

Constructor Detail

Expression

protected Expression()
Method Detail

setMaxOperands

protected void setMaxOperands(int maxAllowed)

getMaxOperands

public int getMaxOperands()

getNumOperands

public int getNumOperands()

setOperand

public void setOperand(int index,
                       Object operand)

getOperand

public Object getOperand(int index)

addOperand

public void addOperand(Object operand)
Adds the specified operand to the end of this expression's operand list.

Parameters:
operand - the operand to append to the operand list

equals

public boolean equals(Object toCheck)
Overrides:
equals in class SqlmlComponent

hashCode

public int hashCode()