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, toString
public int getWhenCount()
AbstractCaseExpression
getWhenCount
in class AbstractCaseExpression
AbstractCaseExpression.getWhenCount()
public List getWhen()
public Criteria getWhenCriteria(int index)
index
- public void setWhen(List when, List then)
setWhen
in class AbstractCaseExpression
when
- a non-null List of at least one Criteriathen
- a non-null List of at least one Expressionpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic Object clone()
LanguageObject
clone
in interface LanguageObject
clone
in class AbstractCaseExpression
Object.clone()
public boolean equals(Object obj)
equals
in class AbstractCaseExpression
Copyright © 2019. All rights reserved.