Package org.teiid.language
Class SearchedCase
- java.lang.Object
-
- org.teiid.language.BaseLanguageObject
-
- org.teiid.language.SearchedCase
-
- All Implemented Interfaces:
Expression
,LanguageObject
public class SearchedCase extends BaseLanguageObject implements Expression
Represents a searched CASE expression:
CASE WHEN criteria THEN expression ... END
-
-
Constructor Summary
Constructors Constructor Description SearchedCase(List<SearchedWhenClause> cases, Expression elseExpression, Class<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageObjectVisitor visitor)
List<SearchedWhenClause>
getCases()
Expression
getElseExpression()
Class<?>
getType()
Determine the type returned by this expression.void
setElseExpression(Expression expression)
void
setType(Class<?> type)
-
Methods inherited from class org.teiid.language.BaseLanguageObject
toString
-
-
-
-
Constructor Detail
-
SearchedCase
public SearchedCase(List<SearchedWhenClause> cases, Expression elseExpression, Class<?> type)
-
-
Method Detail
-
getElseExpression
public Expression getElseExpression()
-
getCases
public List<SearchedWhenClause> getCases()
-
acceptVisitor
public void acceptVisitor(LanguageObjectVisitor visitor)
- Specified by:
acceptVisitor
in interfaceLanguageObject
-
setElseExpression
public void setElseExpression(Expression expression)
-
getType
public Class<?> getType()
Description copied from interface:Expression
Determine the type returned by this expression.- Specified by:
getType
in interfaceExpression
- Returns:
- The type, as defined by a Java class
-
setType
public void setType(Class<?> type)
-
-