Class SwitchRuleHandler

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

public class SwitchRuleHandler extends AbstractExpressionHandler
Handler for switch rules.
  • Field Details

    • SWITCH_RULE_CHILDREN

      private static final int[] SWITCH_RULE_CHILDREN
      The child elements of a switch rule.
  • Constructor Details

    • SwitchRuleHandler

      public SwitchRuleHandler(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