Uses of Class
com.puppycrawl.tools.checkstyle.checks.coding.DeclarationOrderCheck.ScopeState
-
Packages that use DeclarationOrderCheck.ScopeState Package Description com.puppycrawl.tools.checkstyle.checks.coding Contains the Coding checks that are bundled with the main distribution. -
-
Uses of DeclarationOrderCheck.ScopeState in com.puppycrawl.tools.checkstyle.checks.coding
Fields in com.puppycrawl.tools.checkstyle.checks.coding with type parameters of type DeclarationOrderCheck.ScopeState Modifier and Type Field Description private Deque<DeclarationOrderCheck.ScopeState>
DeclarationOrderCheck. scopeStates
List of Declaration States.Methods in com.puppycrawl.tools.checkstyle.checks.coding with parameters of type DeclarationOrderCheck.ScopeState Modifier and Type Method Description private boolean
DeclarationOrderCheck. processModifiersState(DetailAST modifierAst, DeclarationOrderCheck.ScopeState state)
Process if given modifiers are appropriate in given state (STATE_STATIC_VARIABLE_DEF
,STATE_INSTANCE_VARIABLE_DEF
, (STATE_CTOR_DEF
,STATE_METHOD_DEF
), if it is it updates states where appropriate or logs violation.private void
DeclarationOrderCheck. processModifiersSubState(DetailAST modifiersAst, DeclarationOrderCheck.ScopeState state, boolean isStateValid)
Checks if given modifiers are valid in substate of given state(Scope
), if it is it updates substate or else it logs violation.
-