java.lang.Object
com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler
com.puppycrawl.tools.checkstyle.checks.indentation.CaseHandler

public class CaseHandler extends AbstractExpressionHandler
Handler for case statements.
  • Field Details

    • CASE_CHILDREN

      private static final int[] CASE_CHILDREN
      The child elements of a case expression.
  • Constructor Details

    • CaseHandler

      public CaseHandler(IndentationCheck indentCheck, DetailAST expr, AbstractExpressionHandler parent)
      Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
      Parameters:
      indentCheck - the indentation check
      expr - the abstract syntax tree
      parent - the parent handler
  • Method Details