Class SQLCaseWhenThen
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.sql.SQLNode
ortus.boxlang.compiler.ast.sql.select.expression.SQLCaseWhenThen
- All Implemented Interfaces:
BoxVisitable
Abstract Node class representing SQL case when/then expression
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSQLCaseWhenThen
(SQLExpression whenExpression, SQLExpression thenExpression, Position position, String sourceText) Constructor -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.void
Accept method for visitor support.Get the then expressionGet the when expressionvoid
setThenExpression
(SQLExpression thenExpression) Set the then expressionvoid
setWhenExpression
(SQLExpression whenExpression) Set the when expressiontoMap()
Methods inherited from class ortus.boxlang.compiler.ast.BoxNode
addComment, associateComments, endsOnSameLineAs, enumToMap, getAncestors, getChildren, getComments, getDescendants, getDescendantsOfType, getDescendantsOfType, getDescription, getDocComment, getFirstAncestorOfType, getFirstAncestorOfType, getFirstNodeOfType, getFirstNodeOfType, getFirstNodeOfTypes, getParent, getPosition, getSourceText, isAfter, isBefore, isInside, replaceChildren, replaceChildren, setComments, setParent, setPosition, setSourceText, startsOnEndLineOf, toJSON, toString
-
Constructor Details
-
SQLCaseWhenThen
public SQLCaseWhenThen(SQLExpression whenExpression, SQLExpression thenExpression, Position position, String sourceText) Constructor- Parameters:
position
- position of the statement in the source codesourceText
- source code of the statement
-
-
Method Details
-
getWhenExpression
Get the when expression -
setWhenExpression
Set the when expression -
getThenExpression
Get the then expression -
setThenExpression
Set the then expression -
accept
Description copied from interface:BoxVisitable
Accept method for visitor support.- Parameters:
v
- the visitor implementation
-
accept
Description copied from interface:BoxVisitable
Accept method for replacing visitor support. Each accept returns the node, or a replacement node.- Parameters:
v
- the visitor implementation
-
toMap
-