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 TypeMethodDescriptionvoid
Deprecated.Add a default annotation to the database.void
addDefaultMethodAnnotation
(String name, NullnessAnnotation annotation) Deprecated.void
addFieldAnnotation
(String name, String name2, String sig, boolean isStatic, NullnessAnnotation annotation) Deprecated.Add a field annotation to the database.void
addMethodAnnotation
(String name, String name2, String sig, boolean isStatic, NullnessAnnotation annotation) Deprecated.Add a method annotation to the database.void
addMethodParameterAnnotation
(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.void
Deprecated.Load "built-in" annotations that might not be evident from the analyzed/referenced code.boolean
parameterMustBeNonNull
(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:INullnessAnnotationDatabase
Load "built-in" annotations that might not be evident from the analyzed/referenced code.- Specified by:
loadAuxiliaryAnnotations
in interfaceINullnessAnnotationDatabase
- Overrides:
loadAuxiliaryAnnotations
in classAnnotationDatabase<NullnessAnnotation>
-
parameterMustBeNonNull
Deprecated.Description copied from interface:INullnessAnnotationDatabase
Determine whether given parameter must be non-null.- Specified by:
parameterMustBeNonNull
in 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:INullnessAnnotationDatabase
Get a resolved NullnessAnnotation on given XMethod, XField, or XMethodParameter.- Specified by:
getResolvedAnnotation
in interfaceINullnessAnnotationDatabase
- Overrides:
getResolvedAnnotation
in classAnnotationDatabase<NullnessAnnotation>
- Parameters:
o
- an XMethod, XField, or XMethodParametergetMinimal
- TODO: what does this mean?- Returns:
- resolved NullnessAnnotation
-
addDefaultMethodAnnotation
Deprecated.- Overrides:
addDefaultMethodAnnotation
in classAnnotationDatabase<NullnessAnnotation>
-
addDefaultAnnotation
Deprecated.Description copied from interface:INullnessAnnotationDatabase
Add a default annotation to the database.- Specified by:
addDefaultAnnotation
in interfaceINullnessAnnotationDatabase
- Overrides:
addDefaultAnnotation
in 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:INullnessAnnotationDatabase
Add a field annotation to the database.- Specified by:
addFieldAnnotation
in interfaceINullnessAnnotationDatabase
- Overrides:
addFieldAnnotation
in 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:INullnessAnnotationDatabase
Add a method annotation to the database.- Specified by:
addMethodAnnotation
in interfaceINullnessAnnotationDatabase
- Overrides:
addMethodAnnotation
in 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:INullnessAnnotationDatabase
Add a method parameter annotation to the database.- Specified by:
addMethodParameterAnnotation
in interfaceINullnessAnnotationDatabase
- Overrides:
addMethodParameterAnnotation
in 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
-