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 void
addDefaultAnnotation(AnnotationDatabase.Target target, java.lang.String c, NullnessAnnotation n)
Deprecated.Add a default annotation to the database.void
addDefaultMethodAnnotation(java.lang.String name, NullnessAnnotation annotation)
Deprecated.void
addFieldAnnotation(java.lang.String name, java.lang.String name2, java.lang.String sig, boolean isStatic, NullnessAnnotation annotation)
Deprecated.Add a field annotation to the database.void
addMethodAnnotation(java.lang.String name, java.lang.String name2, java.lang.String sig, boolean isStatic, NullnessAnnotation annotation)
Deprecated.Add a method annotation to the database.void
addMethodParameterAnnotation(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.NullnessAnnotation
getResolvedAnnotation(java.lang.Object o, boolean getMinimal)
Deprecated.Get a resolved NullnessAnnotation on given XMethod, XField, or XMethodParameter.void
loadAuxiliaryAnnotations()
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
-
-
-
-
Method Detail
-
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
public boolean parameterMustBeNonNull(XMethod m, int param)
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
@CheckForNull public NullnessAnnotation getResolvedAnnotation(java.lang.Object o, boolean getMinimal)
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
public void addDefaultMethodAnnotation(java.lang.String name, NullnessAnnotation annotation)
Deprecated.- Overrides:
addDefaultMethodAnnotation
in classAnnotationDatabase<NullnessAnnotation>
-
addDefaultAnnotation
public void addDefaultAnnotation(AnnotationDatabase.Target target, java.lang.String c, NullnessAnnotation n)
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(java.lang.String name, java.lang.String name2, java.lang.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(java.lang.String name, java.lang.String name2, java.lang.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(java.lang.String name, java.lang.String name2, java.lang.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
-
-