| 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.getDetailsForLoops(DetailAST ast)
Collects validation details for loops' tokens.
|
private static RightCurlyCheck.Details |
RightCurlyCheck.Details.getDetailsForOthers(DetailAST ast)
Collects validation details for CLASS_DEF, RECORD_DEF, METHOD DEF, CTOR_DEF, STATIC_INIT,
INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, and COMPACT_CTOR_DEF.
|
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,
java.lang.String targetSrcLine)
Checks whether right curly is alone on a line.
|
private static boolean |
RightCurlyCheck.isBlockAloneOnSingleLine(RightCurlyCheck.Details details)
Checks whether block has a single-line format and is alone on a line.
|
private static boolean |
RightCurlyCheck.isRightcurlyFollowedBySemicolon(RightCurlyCheck.Details details)
Checks whether the right curly is followed by a semicolon.
|
private static boolean |
RightCurlyCheck.shouldBeAloneOnLine(RightCurlyOption bracePolicy,
RightCurlyCheck.Details details,
java.lang.String targetSrcLine)
Checks that a right curly should be alone on a line.
|
private static boolean |
RightCurlyCheck.shouldBeAloneOnLineWithAloneOption(RightCurlyCheck.Details details,
java.lang.String targetSrcLine)
Whether right curly should be alone on line when ALONE option is used.
|
private static boolean |
RightCurlyCheck.shouldBeAloneOnLineWithNotAloneOption(RightCurlyCheck.Details details,
java.lang.String targetSrcLine)
Whether right curly should be alone on line when ALONE_OR_SINGLELINE or SAME 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 static boolean |
RightCurlyCheck.skipDoubleBraceInstInit(RightCurlyCheck.Details details)
This method determines if the double brace initialization should be skipped over by the
check.
|
private java.lang.String |
RightCurlyCheck.validate(RightCurlyCheck.Details details)
Does general validation.
|
Copyright © 2001-2022. All Rights Reserved.