Uses of Class
com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck.TypeDeclDesc
-
Packages that use UnusedLocalVariableCheck.TypeDeclDesc Package Description com.puppycrawl.tools.checkstyle.checks.coding Contains the Coding checks that are bundled with the main distribution. -
-
Uses of UnusedLocalVariableCheck.TypeDeclDesc in com.puppycrawl.tools.checkstyle.checks.coding
Fields in com.puppycrawl.tools.checkstyle.checks.coding with type parameters of type UnusedLocalVariableCheck.TypeDeclDesc Modifier and Type Field Description private Map<DetailAST,UnusedLocalVariableCheck.TypeDeclDesc>
UnusedLocalVariableCheck. anonInnerAstToTypeDeclDesc
Maps local anonymous inner class to the TypeDeclDesc object containing it.private Deque<UnusedLocalVariableCheck.TypeDeclDesc>
UnusedLocalVariableCheck. typeDeclarations
Keeps track of all the type declarations present in the file.private Map<DetailAST,UnusedLocalVariableCheck.TypeDeclDesc>
UnusedLocalVariableCheck. typeDeclAstToTypeDeclDesc
Maps type declaration ast to their respective TypeDeclDesc objects.Methods in com.puppycrawl.tools.checkstyle.checks.coding that return UnusedLocalVariableCheck.TypeDeclDesc Modifier and Type Method Description private UnusedLocalVariableCheck.TypeDeclDesc
UnusedLocalVariableCheck. getSuperClassOfAnonInnerClass(DetailAST literalNewAst)
Get theUnusedLocalVariableCheck.TypeDeclDesc
of the super class of anonymous inner class.private static UnusedLocalVariableCheck.TypeDeclDesc
UnusedLocalVariableCheck. getTheNearestClass(String outerTypeDeclName, List<UnusedLocalVariableCheck.TypeDeclDesc> typeDeclWithSameName)
For all type declarations with the same name as the superclass, gets the nearest type declaration.Methods in com.puppycrawl.tools.checkstyle.checks.coding that return types with arguments of type UnusedLocalVariableCheck.TypeDeclDesc Modifier and Type Method Description private List<UnusedLocalVariableCheck.TypeDeclDesc>
UnusedLocalVariableCheck. typeDeclWithSameName(String superClassName)
Checks if there is a type declaration with same name as the super class.Methods in com.puppycrawl.tools.checkstyle.checks.coding with parameters of type UnusedLocalVariableCheck.TypeDeclDesc Modifier and Type Method Description private static int
UnusedLocalVariableCheck. getTypeDeclarationNameMatchingCountDiff(String outerTypeDeclName, UnusedLocalVariableCheck.TypeDeclDesc firstTypeDecl, UnusedLocalVariableCheck.TypeDeclDesc secondTypeDecl)
Get the difference between type declaration name matching count.private boolean
UnusedLocalVariableCheck. hasSameNameAsSuperClass(String superClassName, UnusedLocalVariableCheck.TypeDeclDesc typeDeclDesc)
Whether the qualified name oftypeDeclDesc
matches the super class name.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.Method parameters in com.puppycrawl.tools.checkstyle.checks.coding with type arguments of type UnusedLocalVariableCheck.TypeDeclDesc Modifier and Type Method Description private static UnusedLocalVariableCheck.TypeDeclDesc
UnusedLocalVariableCheck. getTheNearestClass(String outerTypeDeclName, List<UnusedLocalVariableCheck.TypeDeclDesc> typeDeclWithSameName)
For all type declarations with the same name as the superclass, gets the nearest type declaration.
-