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

public class SQLCaseWhenThen extends SQLNode
Abstract Node class representing SQL case when/then expression
  • Constructor Details

    • SQLCaseWhenThen

      public SQLCaseWhenThen(SQLExpression whenExpression, SQLExpression thenExpression, Position position, String sourceText)
      Constructor
      Parameters:
      position - position of the statement in the source code
      sourceText - source code of the statement
  • Method Details

    • getWhenExpression

      public SQLExpression getWhenExpression()
      Get the when expression
    • setWhenExpression

      public void setWhenExpression(SQLExpression whenExpression)
      Set the when expression
    • getThenExpression

      public SQLExpression getThenExpression()
      Get the then expression
    • setThenExpression

      public void setThenExpression(SQLExpression thenExpression)
      Set the then expression
    • accept

      public void accept(VoidBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for visitor support.
      Parameters:
      v - the visitor implementation
    • accept

      public BoxNode accept(ReplacingBoxVisitor v)
      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

      public Map<String,Object> toMap()
      Overrides:
      toMap in class BoxNode