Package edu.umd.cs.findbugs.ba
Class NullnessAnnotationDatabase
java.lang.Object
edu.umd.cs.findbugs.ba.AnnotationDatabase<NullnessAnnotation>
edu.umd.cs.findbugs.ba.NullnessAnnotationDatabase
- All Implemented Interfaces:
INullnessAnnotationDatabase
@Deprecated
public class NullnessAnnotationDatabase
extends AnnotationDatabase<NullnessAnnotation>
implements INullnessAnnotationDatabase
Deprecated.
- Author:
- pugh
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.ba.AnnotationDatabase
AnnotationDatabase.Target -
Field Summary
Fields inherited from class edu.umd.cs.findbugs.ba.AnnotationDatabase
IGNORE_BUILTIN_ANNOTATIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Add a default annotation to the database.voidaddDefaultMethodAnnotation(String name, NullnessAnnotation annotation) Deprecated.voidaddFieldAnnotation(String name, String name2, String sig, boolean isStatic, NullnessAnnotation annotation) Deprecated.Add a field annotation to the database.voidaddMethodAnnotation(String name, String name2, String sig, boolean isStatic, NullnessAnnotation annotation) Deprecated.Add a method annotation to the database.voidaddMethodParameterAnnotation(String name, String name2, String sig, boolean isStatic, int param, NullnessAnnotation annotation) Deprecated.Add a method parameter annotation to the database.getResolvedAnnotation(Object o, boolean getMinimal) Deprecated.Get a resolved NullnessAnnotation on given XMethod, XField, or XMethodParameter.voidDeprecated.Load "built-in" annotations that might not be evident from the analyzed/referenced code.booleanparameterMustBeNonNull(XMethod m, int param) Deprecated.Determine whether given parameter must be non-null.Methods inherited from class edu.umd.cs.findbugs.ba.AnnotationDatabase
addDirectAnnotation, addMethodAnnotation, annotationIsDirect, anyAnnotations, getDirectAnnotation, getUncachedResolvedAnnotation, setAddClassOnly
-
Constructor Details
-
NullnessAnnotationDatabase
public NullnessAnnotationDatabase()Deprecated.
-
-
Method Details
-
loadAuxiliaryAnnotations
public void loadAuxiliaryAnnotations()Deprecated.Description copied from interface:INullnessAnnotationDatabaseLoad "built-in" annotations that might not be evident from the analyzed/referenced code.- Specified by:
loadAuxiliaryAnnotationsin interfaceINullnessAnnotationDatabase- Overrides:
loadAuxiliaryAnnotationsin classAnnotationDatabase<NullnessAnnotation>
-
parameterMustBeNonNull
Deprecated.Description copied from interface:INullnessAnnotationDatabaseDetermine whether given parameter must be non-null.- Specified by:
parameterMustBeNonNullin interfaceINullnessAnnotationDatabase- Parameters:
m- a methodparam- parameter (0 == first parameter)- Returns:
- true if the parameter must be non-null, false otherwise
-
getResolvedAnnotation
Deprecated.Description copied from interface:INullnessAnnotationDatabaseGet a resolved NullnessAnnotation on given XMethod, XField, or XMethodParameter.- Specified by:
getResolvedAnnotationin interfaceINullnessAnnotationDatabase- Overrides:
getResolvedAnnotationin classAnnotationDatabase<NullnessAnnotation>- Parameters:
o- an XMethod, XField, or XMethodParametergetMinimal- TODO: what does this mean?- Returns:
- resolved NullnessAnnotation
-
addDefaultMethodAnnotation
Deprecated.- Overrides:
addDefaultMethodAnnotationin classAnnotationDatabase<NullnessAnnotation>
-
addDefaultAnnotation
Deprecated.Description copied from interface:INullnessAnnotationDatabaseAdd a default annotation to the database.- Specified by:
addDefaultAnnotationin interfaceINullnessAnnotationDatabase- Overrides:
addDefaultAnnotationin classAnnotationDatabase<NullnessAnnotation>- Parameters:
target- one of AnnotationDatabase.METHOD, AnnotationDatabase.FIELD, AnnotationDatabase.PARAMETER, or AnnotationDatabase.ANYc- dotted class name of class default annotation pertains ton- the default NullnessAnnotation
-
addFieldAnnotation
public void addFieldAnnotation(String name, String name2, String sig, boolean isStatic, NullnessAnnotation annotation) Deprecated.Description copied from interface:INullnessAnnotationDatabaseAdd a field annotation to the database.- Specified by:
addFieldAnnotationin interfaceINullnessAnnotationDatabase- Overrides:
addFieldAnnotationin classAnnotationDatabase<NullnessAnnotation>- Parameters:
name- dotted class namename2- field namesig- field signatureisStatic- true if field is static, false otherwiseannotation- NullnessAnnotation to add
-
addMethodAnnotation
public void addMethodAnnotation(String name, String name2, String sig, boolean isStatic, NullnessAnnotation annotation) Deprecated.Description copied from interface:INullnessAnnotationDatabaseAdd a method annotation to the database.- Specified by:
addMethodAnnotationin interfaceINullnessAnnotationDatabase- Overrides:
addMethodAnnotationin classAnnotationDatabase<NullnessAnnotation>- Parameters:
name- dotted class namename2- method namesig- method signatureisStatic- true if method is static, false otherwiseannotation- NullnessAnnotation to add
-
addMethodParameterAnnotation
public void addMethodParameterAnnotation(String name, String name2, String sig, boolean isStatic, int param, NullnessAnnotation annotation) Deprecated.Description copied from interface:INullnessAnnotationDatabaseAdd a method parameter annotation to the database.- Specified by:
addMethodParameterAnnotationin interfaceINullnessAnnotationDatabase- Overrides:
addMethodParameterAnnotationin classAnnotationDatabase<NullnessAnnotation>- Parameters:
name- dotted class namename2- method namesig- method signatureisStatic- true if method is static, false otherwiseparam- parameter (0 == first parameter)annotation- the NullnessAnnotation to add
-