Uses of Class
com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck.VariableDesc
-
Packages that use UnusedLocalVariableCheck.VariableDesc Package Description com.puppycrawl.tools.checkstyle.checks.coding Contains the Coding checks that are bundled with the main distribution. -
-
Uses of UnusedLocalVariableCheck.VariableDesc in com.puppycrawl.tools.checkstyle.checks.coding
Fields in com.puppycrawl.tools.checkstyle.checks.coding with type parameters of type UnusedLocalVariableCheck.VariableDesc Modifier and Type Field Description private Deque<UnusedLocalVariableCheck.VariableDesc>
UnusedLocalVariableCheck.TypeDeclDesc. instanceAndClassVarStack
A stack of type declaration's instance and static variables.private Deque<UnusedLocalVariableCheck.VariableDesc>
UnusedLocalVariableCheck. variables
Keeps tracks of the variables declared in file.Methods in com.puppycrawl.tools.checkstyle.checks.coding that return types with arguments of type UnusedLocalVariableCheck.VariableDesc Modifier and Type Method Description Deque<UnusedLocalVariableCheck.VariableDesc>
UnusedLocalVariableCheck.TypeDeclDesc. getUpdatedCopyOfVarStack(DetailAST literalNewAst)
Get the copy of variables in instanceAndClassVar stack with updated scope.Methods in com.puppycrawl.tools.checkstyle.checks.coding with parameters of type UnusedLocalVariableCheck.VariableDesc Modifier and Type Method Description void
UnusedLocalVariableCheck.TypeDeclDesc. addInstOrClassVar(UnusedLocalVariableCheck.VariableDesc variableDesc)
Add an instance variable or class variable to the stack.Method parameters in com.puppycrawl.tools.checkstyle.checks.coding with type arguments of type UnusedLocalVariableCheck.VariableDesc Modifier and Type Method Description private static void
UnusedLocalVariableCheck. addLocalVariables(DetailAST varDefAst, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack)
Add local variables to thevariablesStack
stack.private static void
UnusedLocalVariableCheck. checkIdentifierAst(DetailAST identAst, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack)
Checks the identifier ast.private void
UnusedLocalVariableCheck. customLeaveToken(DetailAST ast, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack)
Leave all ast nodes underUnusedLocalVariableCheck.anonInnerClassHolders
once again.private void
UnusedLocalVariableCheck. customVisitToken(DetailAST ast, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack)
Visit all ast nodes underUnusedLocalVariableCheck.anonInnerClassHolders
once again.private void
UnusedLocalVariableCheck. iterateOverBlockContainingLocalAnonInnerClass(DetailAST ast, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack)
Iterate over all the ast nodes present underast
.private void
UnusedLocalVariableCheck. logViolations(DetailAST scopeAst, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack)
TraversevariablesStack
stack and log the violations.private void
UnusedLocalVariableCheck. modifyVariablesStack(UnusedLocalVariableCheck.TypeDeclDesc obtainedClass, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack, DetailAST literalNewAst)
Add non-private instance and class variables of the super class of the anonymous class to the variables stack.private static void
UnusedLocalVariableCheck. visitDotToken(DetailAST dotAst, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack)
Visit ast of typeTokenTypes.DOT
.private static void
UnusedLocalVariableCheck. visitIdentToken(DetailAST identAst, Deque<UnusedLocalVariableCheck.VariableDesc> variablesStack)
Visit ast of typeTokenTypes.IDENT
.
-