public class SearchedCaseExpression extends AbstractCaseExpression
LanguageObject.Util| Constructor and Description |
|---|
SearchedCaseExpression(List when,
List then)
Constructor for SearchedCaseExpression objects
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
Object |
clone()
Implement clone to make objects cloneable.
|
boolean |
equals(Object obj) |
List |
getWhen()
Gets the List of Criteria in the WHEN parts of this expression.
|
int |
getWhenCount()
Gets the number of WHEN and THEN parts this case expression contains.
|
Criteria |
getWhenCriteria(int index)
Gets the WHEN criteria at the given 0-based index.
|
void |
setWhen(List when,
List then)
Sets the WHEN and THEN parts of this CASE expression.
|
getElseExpression, getThen, getThenExpression, getType, hashCode, setElseExpression, setThen, setType, toStringpublic int getWhenCount()
AbstractCaseExpressiongetWhenCount in class AbstractCaseExpressionAbstractCaseExpression.getWhenCount()public List getWhen()
public Criteria getWhenCriteria(int index)
index - public void setWhen(List when, List then)
setWhen in class AbstractCaseExpressionwhen - a non-null List of at least one Criteriathen - a non-null List of at least one Expressionpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObjectvisitor - Visitor being usedpublic Object clone()
LanguageObjectclone in interface LanguageObjectclone in class AbstractCaseExpressionObject.clone()public boolean equals(Object obj)
equals in class AbstractCaseExpressionCopyright © 2019. All rights reserved.