|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.sql.symbol.AbstractCaseExpression
public abstract class AbstractCaseExpression
Constructor Summary | |
---|---|
protected |
AbstractCaseExpression()
|
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
Implement clone to make objects cloneable. |
boolean |
equals(java.lang.Object obj)
|
Expression |
getElseExpression()
Gets the expression in the ELSE part of this expression. |
java.util.List |
getThen()
Gets the List of THEN expressions in this CASE expression. |
Expression |
getThenExpression(int index)
Gets the expression of the THEN part at the given index. |
java.lang.Class |
getType()
Get the return type of this expression. |
abstract int |
getWhenCount()
Gets the number of WHEN and THEN parts this case expression contains. |
int |
hashCode()
|
void |
setElseExpression(Expression elseExpression)
Sets the expression in the ELSE part of this expression. |
protected void |
setThen(java.util.List then)
Sets the List of THEN expressions in this CASE expression |
void |
setType(java.lang.Class type)
Sets the type to which this expression has resolved. |
abstract void |
setWhen(java.util.List whens,
java.util.List thens)
|
java.lang.String |
toString()
Return a String representation of this object using SQLStringVisitor. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.query.sql.symbol.Expression |
---|
isResolved |
Methods inherited from interface com.metamatrix.query.sql.LanguageObject |
---|
acceptVisitor |
Constructor Detail |
---|
protected AbstractCaseExpression()
Method Detail |
---|
public abstract int getWhenCount()
public Expression getThenExpression(int index)
index
-
public java.util.List getThen()
protected void setThen(java.util.List then)
then
- public Expression getElseExpression()
public void setElseExpression(Expression elseExpression)
elseExpression
- public java.lang.Class getType()
Expression
Expression.isResolved()
returns true).
getType
in interface Expression
Expression.getType()
public void setType(java.lang.Class type)
type
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public abstract java.lang.Object clone()
LanguageObject
clone
in interface LanguageObject
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void setWhen(java.util.List whens, java.util.List thens)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |