public class SwitchHandler extends BlockParentHandler
Handler for switch statements.
  • Field Details

    • LINE_WRAPPING_INDENT_TRIGGERS

      private static final int[] LINE_WRAPPING_INDENT_TRIGGERS
      Token types that, when appearing as a parent or grandparent of the current switch expression, indicate that the expression is likely line-wrapped and should be indented.
  • Constructor Details

    • SwitchHandler

      Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
      Parameters:
      indentCheck - the indentation check
      ast - the abstract syntax tree
      parent - the parent handler
  • Method Details