Uses of Class
com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck.TypeDeclDesc
Packages that use UnusedLocalVariableCheck.TypeDeclDesc
Package
Description
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.TypeDeclDescModifier and TypeFieldDescriptionprivate final Map<DetailAST,
UnusedLocalVariableCheck.TypeDeclDesc> UnusedLocalVariableCheck.anonInnerAstToTypeDeclDesc
Maps local anonymous inner class to the TypeDeclDesc object containing it.private final Deque<UnusedLocalVariableCheck.TypeDeclDesc>
UnusedLocalVariableCheck.typeDeclarations
Keeps track of all the type declarations present in the file.private final 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.TypeDeclDescModifier and TypeMethodDescriptionprivate static UnusedLocalVariableCheck.TypeDeclDesc
UnusedLocalVariableCheck.getClosestMatchingTypeDeclaration
(String outerTypeDeclName, List<UnusedLocalVariableCheck.TypeDeclDesc> typeDeclWithSameName) For all type declarations with the same name as the superclass, gets the nearest type declaration.UnusedLocalVariableCheck.getSuperClassOfAnonInnerClass
(DetailAST literalNewAst) Get theUnusedLocalVariableCheck.TypeDeclDesc
of the super class of anonymous inner class.Methods in com.puppycrawl.tools.checkstyle.checks.coding that return types with arguments of type UnusedLocalVariableCheck.TypeDeclDescModifier and TypeMethodDescriptionUnusedLocalVariableCheck.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.TypeDeclDescModifier and TypeMethodDescriptionprivate static int
UnusedLocalVariableCheck.calculateTypeDeclarationDistance
(String outerTypeName, UnusedLocalVariableCheck.TypeDeclDesc firstType, UnusedLocalVariableCheck.TypeDeclDesc secondType) 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.TypeDeclDescModifier and TypeMethodDescriptionprivate static UnusedLocalVariableCheck.TypeDeclDesc
UnusedLocalVariableCheck.getClosestMatchingTypeDeclaration
(String outerTypeDeclName, List<UnusedLocalVariableCheck.TypeDeclDesc> typeDeclWithSameName) For all type declarations with the same name as the superclass, gets the nearest type declaration.