public class CaseExpression extends AbstractCaseExpression
LanguageObject.Util| Constructor and Description |
|---|
CaseExpression(Expression expression,
List when,
List then)
Constructor for CaseExpression 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) |
Expression |
getExpression()
Gets the expression whose evaluation is being tested in this case expression.
|
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.
|
void |
setExpression(Expression expr)
Sets the expression for this case expression
|
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 CaseExpression(Expression expression, List when, List then)
expression - a non-null expressionwhen - a non-null List containing at least one Expressionthen - a non-null List containing at least one Expressionpublic Expression getExpression()
public void setExpression(Expression expr)
expr - a non-null Expressionpublic int getWhenCount()
AbstractCaseExpressiongetWhenCount in class AbstractCaseExpressionAbstractCaseExpression.getWhenCount()public List getWhen()
public Expression getWhenExpression(int index)
index - public void setWhen(List when, List then)
setWhen in class AbstractCaseExpressionwhen - a non-null List of at least one Expressionthen - 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 © 2018 JBoss by Red Hat. All rights reserved.