private static final class RightCurlyCheck.Details
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private DetailAST |
lcurly
Left curly.
|
private DetailAST |
nextToken
Next token.
|
private DetailAST |
rcurly
Right curly.
|
private boolean |
shouldCheckLastRcurly
Should check last right curly.
|
Modifier | Constructor and Description |
---|---|
private |
Details(DetailAST lcurly,
DetailAST rcurly,
DetailAST nextToken,
boolean shouldCheckLastRcurly)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static RightCurlyCheck.Details |
getDetails(DetailAST ast)
Collects validation Details.
|
private static RightCurlyCheck.Details |
getDetailsForIfElse(DetailAST ast)
Collects validation details for LITERAL_IF and LITERAL_ELSE.
|
private static RightCurlyCheck.Details |
getDetailsForLambda(DetailAST ast)
Collects validation details for Lambdas.
|
private static RightCurlyCheck.Details |
getDetailsForLoops(DetailAST ast)
Collects validation details for loops' tokens.
|
private static RightCurlyCheck.Details |
getDetailsForOthers(DetailAST ast)
Collects validation details for CLASS_DEF, METHOD DEF, CTOR_DEF, STATIC_INIT, and
INSTANCE_INIT.
|
private static RightCurlyCheck.Details |
getDetailsForTryCatchFinally(DetailAST ast)
Collects validation details for LITERAL_TRY, LITERAL_CATCH, and LITERAL_FINALLY.
|
private static DetailAST |
getNextToken(DetailAST ast)
Finds next token after the given one.
|
private final DetailAST rcurly
private final DetailAST lcurly
private final DetailAST nextToken
private final boolean shouldCheckLastRcurly
private Details(DetailAST lcurly, DetailAST rcurly, DetailAST nextToken, boolean shouldCheckLastRcurly)
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 rcurlyprivate static RightCurlyCheck.Details getDetails(DetailAST ast)
ast
- a DetailAST
valueprivate static RightCurlyCheck.Details getDetailsForTryCatchFinally(DetailAST ast)
ast
- a DetailAST
valueprivate static RightCurlyCheck.Details getDetailsForIfElse(DetailAST ast)
ast
- a DetailAST
valueprivate static RightCurlyCheck.Details getDetailsForOthers(DetailAST ast)
ast
- a DetailAST
valueprivate static RightCurlyCheck.Details getDetailsForLoops(DetailAST ast)
ast
- a DetailAST
valueprivate static RightCurlyCheck.Details getDetailsForLambda(DetailAST ast)
ast
- a DetailAST
value