net.sf.jsqlparser.expression
Class WhenClause

java.lang.Object
  extended by 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

Field Summary
private  Expression thenExpression
           
private  Expression whenExpression
           
 
Constructor Summary
WhenClause()
           
 
Method Summary
 void accept(ExpressionVisitor expressionVisitor)
           
 Expression getThenExpression()
           
 Expression getWhenExpression()
           
 void setThenExpression(Expression thenExpression)
           
 void setWhenExpression(Expression whenExpression)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

whenExpression

private Expression whenExpression

thenExpression

private Expression thenExpression
Constructor Detail

WhenClause

public WhenClause()
Method Detail

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