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.anonInnerAstToTypeDeclDescMaps local anonymous inner class to the TypeDeclDesc object containing it.private final Deque<UnusedLocalVariableCheck.TypeDeclDesc> UnusedLocalVariableCheck.typeDeclarationsKeeps track of all the type declarations present in the file.private final Map<DetailAST, UnusedLocalVariableCheck.TypeDeclDesc> UnusedLocalVariableCheck.typeDeclAstToTypeDeclDescMaps type declaration ast to their respective TypeDeclDesc objects.Methods in com.puppycrawl.tools.checkstyle.checks.coding that return UnusedLocalVariableCheck.TypeDeclDescModifier and TypeMethodDescriptionprivate static UnusedLocalVariableCheck.TypeDeclDescUnusedLocalVariableCheck.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.TypeDeclDescof 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 intUnusedLocalVariableCheck.calculateTypeDeclarationDistance(String outerTypeName, UnusedLocalVariableCheck.TypeDeclDesc firstType, UnusedLocalVariableCheck.TypeDeclDesc secondType) Get the difference between type declaration name matching count.private booleanUnusedLocalVariableCheck.hasSameNameAsSuperClass(String superClassName, UnusedLocalVariableCheck.TypeDeclDesc typeDeclDesc) Whether the qualified name oftypeDeclDescmatches the super class name.private voidUnusedLocalVariableCheck.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.TypeDeclDescUnusedLocalVariableCheck.getClosestMatchingTypeDeclaration(String outerTypeDeclName, List<UnusedLocalVariableCheck.TypeDeclDesc> typeDeclWithSameName) For all type declarations with the same name as the superclass, gets the nearest type declaration.