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

Handler for lambda expressions.
  • Field Details

    • isLambdaCorrectlyIndented

      private boolean isLambdaCorrectlyIndented
      Checks whether the lambda is correctly indented, this variable get its value from checking the lambda handler's indentation, and it is being used in aligning the lambda's children. A true value depicts lambda is correctly aligned without giving any errors. This is updated to false where there is any Indentation error log.
  • Constructor Details

    • LambdaHandler

      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