Package | Description |
---|---|
com.puppycrawl.tools.checkstyle.checks.indentation |
Contains all classes required for the
indentation check.
|
Modifier and Type | Method and Description |
---|---|
protected IndentLevel |
BlockParentHandler.curlyIndent()
Get the expected indentation level for the curly braces.
|
protected IndentLevel |
ObjectBlockHandler.curlyIndent() |
protected IndentLevel |
ArrayInitHandler.curlyIndent() |
protected IndentLevel |
BlockParentHandler.getChildrenExpectedIndent()
Gets indentation level expected for children.
|
protected IndentLevel |
ArrayInitHandler.getChildrenExpectedIndent() |
IndentLevel |
AbstractExpressionHandler.getIndent()
Get the indentation amount for this handler.
|
protected IndentLevel |
MethodCallHandler.getIndentImpl() |
protected IndentLevel |
PrimordialHandler.getIndentImpl() |
protected IndentLevel |
ObjectBlockHandler.getIndentImpl() |
protected IndentLevel |
NewHandler.getIndentImpl() |
protected IndentLevel |
LambdaHandler.getIndentImpl()
Compute the indentation amount for this handler.
|
protected IndentLevel |
LabelHandler.getIndentImpl() |
protected IndentLevel |
IfHandler.getIndentImpl() |
protected IndentLevel |
CaseHandler.getIndentImpl() |
protected IndentLevel |
ArrayInitHandler.getIndentImpl() |
protected IndentLevel |
AbstractExpressionHandler.getIndentImpl()
Compute the indentation amount for this handler.
|
IndentLevel |
MethodCallHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
BlockParentHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
TryHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
SlistHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
PrimordialHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
MemberDefHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
LambdaHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
IfHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
CaseHandler.getSuggestedChildIndent(AbstractExpressionHandler child) |
IndentLevel |
AbstractExpressionHandler.getSuggestedChildIndent(AbstractExpressionHandler child)
Indentation level suggested for a child element.
|
Modifier and Type | Method and Description |
---|---|
void |
IndentLevel.addAcceptedIndent(IndentLevel indent)
Adds one more acceptable indentation level.
|
protected void |
AbstractExpressionHandler.checkChildren(DetailAST parentNode,
int[] tokenTypes,
IndentLevel startIndent,
boolean firstLineMatches,
boolean allowNesting)
Check the indent level of the children of the specified parent
expression.
|
protected void |
AbstractExpressionHandler.checkExpressionSubtree(DetailAST tree,
IndentLevel indentLevel,
boolean firstLineMatches,
boolean allowNesting)
Check the indentation level for an expression subtree.
|
protected void |
AbstractExpressionHandler.logError(DetailAST ast,
String subtypeName,
int actualIndent,
IndentLevel expectedIndent)
Log an indentation error.
|
Constructor and Description |
---|
IndentLevel(IndentLevel base,
int... offsets)
Creates new instance for nested structure.
|
Copyright © 2001–2018. All rights reserved.