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.
|
private static int[] |
TOKENS_WITH_NO_CHILD_SLIST
Token types that identify tokens that will never have SLIST in their AST.
|
| 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 |
getDetailsForLoops(DetailAST ast)
Collects validation details for loops' tokens.
|
private static 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 |
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 static boolean |
isTokenWithNoChildSlist(int tokenType)
Tests whether the provided tokenType will never have a SLIST as child in its AST.
|
private static final int[] TOKENS_WITH_NO_CHILD_SLIST
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 boolean isTokenWithNoChildSlist(int tokenType)
tokenType - the tokenType to test against.private static RightCurlyCheck.Details getDetailsForLoops(DetailAST ast)
ast - a DetailAST valueprivate static DetailAST getNextToken(DetailAST ast)
ast - the given node.Copyright © 2001-2022. All Rights Reserved.