net.sf.jsqlparser.expression
Class WhenClause
java.lang.Object
net.sf.jsqlparser.expression.WhenClause
- All Implemented Interfaces:
- Expression
public class WhenClause
- extends java.lang.Object
- implements Expression
A clause of following syntax:
WHEN condition THEN expression.
Which is part of a CaseExpression.
- Author:
- Havard Rast Blok
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
whenExpression
private Expression whenExpression
thenExpression
private Expression thenExpression
WhenClause
public WhenClause()
accept
public void accept(ExpressionVisitor expressionVisitor)
- Specified by:
accept
in interface Expression
getThenExpression
public Expression getThenExpression()
- Returns:
- Returns the thenExpression.
setThenExpression
public void setThenExpression(Expression thenExpression)
- Parameters:
thenExpression
- The thenExpression to set.
getWhenExpression
public Expression getWhenExpression()
- Returns:
- Returns the whenExpression.
setWhenExpression
public void setWhenExpression(Expression whenExpression)
- Parameters:
whenExpression
- The whenExpression to set.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object