|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.sql.symbol.AbstractCaseExpression
org.teiid.query.sql.symbol.CaseExpression
public class CaseExpression
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
---|
LanguageObject.Util |
Constructor Summary | |
---|---|
CaseExpression(Expression expression,
java.util.List when,
java.util.List then)
Constructor for CaseExpression objects |
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Implement clone to make objects cloneable. |
boolean |
equals(java.lang.Object obj)
|
Expression |
getExpression()
Gets the expression whose evaluation is being tested in this case expression. |
java.util.List |
getWhen()
Gets the List of Expressions in the WHEN parts of this expression. |
int |
getWhenCount()
Gets the number of WHEN and THEN parts this case expression contains. |
Expression |
getWhenExpression(int index)
Gets the WHEN expression at the given 0-based index. |
boolean |
isResolved()
Return true if expression has been fully resolved. |
void |
setExpression(Expression expr)
Sets the expression for this case expression |
void |
setWhen(java.util.List when,
java.util.List then)
Sets the WHEN and THEN parts of this CASE expression. |
Methods inherited from class org.teiid.query.sql.symbol.AbstractCaseExpression |
---|
getElseExpression, getThen, getThenExpression, getType, hashCode, setElseExpression, setThen, setType, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CaseExpression(Expression expression, java.util.List when, java.util.List then)
expression
- a non-null expressionwhen
- a non-null List containing at least one Expressionthen
- a non-null List containing at least one ExpressionMethod Detail |
---|
public Expression getExpression()
public void setExpression(Expression expr)
expr
- a non-null Expressionpublic int getWhenCount()
AbstractCaseExpression
getWhenCount
in class AbstractCaseExpression
AbstractCaseExpression.getWhenCount()
public java.util.List getWhen()
public Expression getWhenExpression(int index)
index
-
public void setWhen(java.util.List when, java.util.List then)
setWhen
in class AbstractCaseExpression
when
- a non-null List of at least one Expressionthen
- a non-null List of at least one Expressionpublic boolean isResolved()
Expression
Expression.isResolved()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
LanguageObject
clone
in interface LanguageObject
clone
in class AbstractCaseExpression
Object.clone()
public boolean equals(java.lang.Object obj)
equals
in class AbstractCaseExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |