Class AccessMethodDatabase
java.lang.Object
edu.umd.cs.findbugs.ba.AccessMethodDatabase
A database of calls to "access" methods, i.e. the methods generated by the compiler when an inner class calls a method on its outer class
Somewhat similar to
InnerClassAccessMap-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAccessMethod(MethodDescriptor accessMethod, MethodDescriptor callerMethod, SourceLineAnnotation sourceLineAnnotation) getAccessMethodLocations(MethodDescriptor accessMethod)
-
Field Details
-
map
-
-
Constructor Details
-
AccessMethodDatabase
public AccessMethodDatabase()
-
-
Method Details
-
addAccessMethod
public void addAccessMethod(MethodDescriptor accessMethod, MethodDescriptor callerMethod, SourceLineAnnotation sourceLineAnnotation) - Parameters:
accessMethod- The method descriptor for the access methodcallerMethod- The method descriptor for the inner class' "real" methodsourceLineAnnotation- The annotation for the location where the inner class is calling the access method
-
getAccessMethodLocations
@NonNull public List<AccessMethodDatabase.AccessMethodLocation> getAccessMethodLocations(MethodDescriptor accessMethod) - Parameters:
accessMethod- The method descriptor for the access method- Returns:
- The locations of the access method caller(s) i.e. the "real" methods in the inner class
-