Package net.sf.jsqlparser.expression
Class WhenClause
java.lang.Object
net.sf.jsqlparser.parser.ASTNodeAccessImpl
net.sf.jsqlparser.expression.WhenClause
- All Implemented Interfaces:
Serializable
,Expression
,Model
,ASTNodeAccess
A clause of following syntax: WHEN condition THEN expression. Which is part
of a CaseExpression.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ExpressionVisitor expressionVisitor) <E extends Expression>
EgetThenExpression
(Class<E> type) <E extends Expression>
EgetWhenExpression
(Class<E> type) void
setThenExpression
(Expression thenExpression) void
setWhenExpression
(Expression whenExpression) toString()
withThenExpression
(Expression thenExpression) withWhenExpression
(Expression whenExpression) Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
appendTo, getASTNode, setASTNode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.jsqlparser.parser.ASTNodeAccess
getASTNode, setASTNode
-
Field Details
-
whenExpression
-
thenExpression
-
-
Constructor Details
-
WhenClause
public WhenClause()
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceExpression
-
getThenExpression
-
setThenExpression
-
getWhenExpression
- Returns:
- Returns the whenExpression.
-
setWhenExpression
- Parameters:
whenExpression
- The whenExpression to set.
-
toString
-
withWhenExpression
-
withThenExpression
-
getThenExpression
-
getWhenExpression
-