Package | Description |
---|---|
com.puppycrawl.tools.checkstyle.checks.blocks |
Contains the Block checks that are
bundled with the main distribution.
|
Modifier and Type | Method and Description |
---|---|
private static RightCurlyCheck.Details |
RightCurlyCheck.Details.getDetails(DetailAST ast)
Collects validation Details.
|
private static RightCurlyCheck.Details |
RightCurlyCheck.Details.getDetailsForIfElse(DetailAST ast)
Collects validation details for LITERAL_IF and LITERAL_ELSE.
|
private static RightCurlyCheck.Details |
RightCurlyCheck.Details.getDetailsForLambda(DetailAST ast)
Collects validation details for Lambdas.
|
private static RightCurlyCheck.Details |
RightCurlyCheck.Details.getDetailsForLoops(DetailAST ast)
Collects validation details for loops' tokens.
|
private static RightCurlyCheck.Details |
RightCurlyCheck.Details.getDetailsForOthers(DetailAST ast)
Collects validation details for CLASS_DEF, METHOD DEF, CTOR_DEF, STATIC_INIT, and
INSTANCE_INIT.
|
private static RightCurlyCheck.Details |
RightCurlyCheck.Details.getDetailsForTryCatchFinally(DetailAST ast)
Collects validation details for LITERAL_TRY, LITERAL_CATCH, and LITERAL_FINALLY.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
RightCurlyCheck.isAloneOnLine(RightCurlyCheck.Details details)
Checks whether right curly is alone on a line.
|
private static boolean |
RightCurlyCheck.isOnStartOfLine(RightCurlyCheck.Details details,
java.lang.String targetSourceLine)
Whether right curly brace starts target source line.
|
private static boolean |
RightCurlyCheck.isSingleLineBlock(RightCurlyCheck.Details details)
Checks whether block has a single-line format.
|
private static boolean |
RightCurlyCheck.shouldBeAloneOnLine(RightCurlyOption bracePolicy,
RightCurlyCheck.Details details)
Checks that a right curly should be alone on a line.
|
private static boolean |
RightCurlyCheck.shouldBeAloneOnLineWithAloneOption(RightCurlyCheck.Details details)
Whether right curly should be alone on line when ALONE option is used.
|
private static boolean |
RightCurlyCheck.shouldBeAloneOnLineWithAloneOrSinglelineOption(RightCurlyCheck.Details details)
Whether right curly should be alone on line when ALONE_OR_SINGLELINE option is used.
|
private static boolean |
RightCurlyCheck.shouldBeOnSameLine(RightCurlyOption bracePolicy,
RightCurlyCheck.Details details)
Checks that a right curly should be on the same line as the next statement.
|
private static boolean |
RightCurlyCheck.shouldHaveLineBreakBefore(RightCurlyOption bracePolicy,
RightCurlyCheck.Details details)
Checks whether a right curly should have a line break before.
|
private java.lang.String |
RightCurlyCheck.validate(RightCurlyCheck.Details details)
Does general validation.
|