Class RightCurlyCheck.Details
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck.Details
-
- Enclosing class:
- RightCurlyCheck
private static final class RightCurlyCheck.Details extends java.lang.ObjectStructure that contains all details for validation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static RightCurlyCheck.DetailsgetDetails(DetailAST ast)Collects validation Details.private static RightCurlyCheck.DetailsgetDetailsForIfElse(DetailAST ast)Collects validation details for LITERAL_IF and LITERAL_ELSE.private static RightCurlyCheck.DetailsgetDetailsForLambda(DetailAST ast)Collects validation details for Lambdas.private static RightCurlyCheck.DetailsgetDetailsForLoops(DetailAST ast)Collects validation details for loops' tokens.private static RightCurlyCheck.DetailsgetDetailsForOthers(DetailAST ast)Collects validation details for CLASS_DEF, METHOD DEF, CTOR_DEF, STATIC_INIT, and INSTANCE_INIT.private static RightCurlyCheck.DetailsgetDetailsForTryCatchFinally(DetailAST ast)Collects validation details for LITERAL_TRY, LITERAL_CATCH, and LITERAL_FINALLY.private static DetailASTgetNextToken(DetailAST ast)Finds next token after the given one.
-
-
-
Constructor Detail
-
Details
private Details(DetailAST lcurly, DetailAST rcurly, DetailAST nextToken, boolean shouldCheckLastRcurly)
Constructor.- Parameters:
lcurly- the lcurly of the token whose details are being collectedrcurly- the rcurly of the token whose details are being collectednextToken- the token after the token whose details are being collectedshouldCheckLastRcurly- boolean value to determine if to check last rcurly
-
-
Method Detail
-
getDetails
private static RightCurlyCheck.Details getDetails(DetailAST ast)
Collects validation Details.- Parameters:
ast- aDetailASTvalue- Returns:
- object containing all details to make a validation
-
getDetailsForTryCatchFinally
private static RightCurlyCheck.Details getDetailsForTryCatchFinally(DetailAST ast)
Collects validation details for LITERAL_TRY, LITERAL_CATCH, and LITERAL_FINALLY.- Parameters:
ast- aDetailASTvalue- Returns:
- object containing all details to make a validation
-
getDetailsForIfElse
private static RightCurlyCheck.Details getDetailsForIfElse(DetailAST ast)
Collects validation details for LITERAL_IF and LITERAL_ELSE.- Parameters:
ast- aDetailASTvalue- Returns:
- object containing all details to make a validation
-
getDetailsForOthers
private static RightCurlyCheck.Details getDetailsForOthers(DetailAST ast)
Collects validation details for CLASS_DEF, METHOD DEF, CTOR_DEF, STATIC_INIT, and INSTANCE_INIT.- Parameters:
ast- aDetailASTvalue- Returns:
- an object containing all details to make a validation
-
getDetailsForLoops
private static RightCurlyCheck.Details getDetailsForLoops(DetailAST ast)
Collects validation details for loops' tokens.- Parameters:
ast- aDetailASTvalue- Returns:
- an object containing all details to make a validation
-
getDetailsForLambda
private static RightCurlyCheck.Details getDetailsForLambda(DetailAST ast)
Collects validation details for Lambdas.- Parameters:
ast- aDetailASTvalue- Returns:
- an object containing all details to make a validation
-
-