| Package | Description |
|---|---|
| com.puppycrawl.tools.checkstyle.checks.coding |
Contains the Coding checks that are
bundled with the main distribution.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<DetailAST,UnusedLocalVariableCheck.TypeDeclDesc> |
UnusedLocalVariableCheck.anonInnerAstToTypeDeclDesc
Maps local anonymous inner class to the TypeDeclDesc object
containing it.
|
private java.util.Deque<UnusedLocalVariableCheck.TypeDeclDesc> |
UnusedLocalVariableCheck.typeDeclarations
Keeps track of all the type declarations present in the file.
|
private java.util.Map<DetailAST,UnusedLocalVariableCheck.TypeDeclDesc> |
UnusedLocalVariableCheck.typeDeclAstToTypeDeclDesc
Maps type declaration ast to their respective TypeDeclDesc objects.
|
| Modifier and Type | Method and Description |
|---|---|
private UnusedLocalVariableCheck.TypeDeclDesc |
UnusedLocalVariableCheck.getSuperClassOfAnonInnerClass(DetailAST literalNewAst)
Get the
UnusedLocalVariableCheck.TypeDeclDesc of the super class of anonymous inner class. |
private static UnusedLocalVariableCheck.TypeDeclDesc |
UnusedLocalVariableCheck.getTheNearestClass(java.lang.String outerTypeDeclName,
java.util.List<UnusedLocalVariableCheck.TypeDeclDesc> typeDeclWithSameName)
For all type declarations with the same name as the superclass, gets the nearest type
declaration.
|
| Modifier and Type | Method and Description |
|---|---|
private java.util.List<UnusedLocalVariableCheck.TypeDeclDesc> |
UnusedLocalVariableCheck.typeDeclWithSameName(java.lang.String superClassName)
Checks if there is a type declaration with same name as the super class.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
UnusedLocalVariableCheck.hasSameNameAsSuperClass(java.lang.String superClassName,
UnusedLocalVariableCheck.TypeDeclDesc typeDeclDesc)
Whether the qualified name of
typeDeclDesc matches the super class name. |
private void |
UnusedLocalVariableCheck.modifyVariablesStack(UnusedLocalVariableCheck.TypeDeclDesc obtainedClass,
java.util.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.
|
| Modifier and Type | Method and Description |
|---|---|
private static UnusedLocalVariableCheck.TypeDeclDesc |
UnusedLocalVariableCheck.getTheNearestClass(java.lang.String outerTypeDeclName,
java.util.List<UnusedLocalVariableCheck.TypeDeclDesc> typeDeclWithSameName)
For all type declarations with the same name as the superclass, gets the nearest type
declaration.
|
Copyright © 2001-2022. All Rights Reserved.