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 Constructor Description NullnessAnnotationDatabase()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDefaultAnnotation(AnnotationDatabase.Target target, java.lang.String c, NullnessAnnotation n)Deprecated.Add a default annotation to the database.voidaddDefaultMethodAnnotation(java.lang.String name, NullnessAnnotation annotation)Deprecated.voidaddFieldAnnotation(java.lang.String name, java.lang.String name2, java.lang.String sig, boolean isStatic, NullnessAnnotation annotation)Deprecated.Add a field annotation to the database.voidaddMethodAnnotation(java.lang.String name, java.lang.String name2, java.lang.String sig, boolean isStatic, NullnessAnnotation annotation)Deprecated.Add a method annotation to the database.voidaddMethodParameterAnnotation(java.lang.String name, java.lang.String name2, java.lang.String sig, boolean isStatic, int param, NullnessAnnotation annotation)Deprecated.Add a method parameter annotation to the database.NullnessAnnotationgetResolvedAnnotation(java.lang.Object o, boolean getMinimal)Deprecated.Get a resolved NullnessAnnotation on given XMethod, XField, or XMethodParameter.voidloadAuxiliaryAnnotations()Deprecated.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
-
-
-
-
Method Detail
-
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
public boolean parameterMustBeNonNull(XMethod m, int param)
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
@CheckForNull public NullnessAnnotation getResolvedAnnotation(java.lang.Object o, boolean getMinimal)
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
public void addDefaultMethodAnnotation(java.lang.String name, NullnessAnnotation annotation)Deprecated.- Overrides:
addDefaultMethodAnnotationin classAnnotationDatabase<NullnessAnnotation>
-
addDefaultAnnotation
public void addDefaultAnnotation(AnnotationDatabase.Target target, java.lang.String c, NullnessAnnotation n)
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(java.lang.String name, java.lang.String name2, java.lang.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(java.lang.String name, java.lang.String name2, java.lang.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(java.lang.String name, java.lang.String name2, java.lang.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
-
-