@Deprecated public class NullnessAnnotationDatabase extends AnnotationDatabase<NullnessAnnotation> implements INullnessAnnotationDatabase
AnnotationDatabase.TargetIGNORE_BUILTIN_ANNOTATIONS| Constructor and Description |
|---|
NullnessAnnotationDatabase()
Deprecated.
|
| Modifier and Type | Method and 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.
|
addDirectAnnotation, addMethodAnnotation, annotationIsDirect, anyAnnotations, getDirectAnnotation, getUncachedResolvedAnnotation, setAddClassOnlypublic void loadAuxiliaryAnnotations()
INullnessAnnotationDatabaseloadAuxiliaryAnnotations in interface INullnessAnnotationDatabaseloadAuxiliaryAnnotations in class AnnotationDatabase<NullnessAnnotation>public boolean parameterMustBeNonNull(XMethod m, int param)
INullnessAnnotationDatabaseparameterMustBeNonNull in interface INullnessAnnotationDatabasem - a methodparam - parameter (0 == first parameter)@CheckForNull public NullnessAnnotation getResolvedAnnotation(java.lang.Object o, boolean getMinimal)
INullnessAnnotationDatabasegetResolvedAnnotation in interface INullnessAnnotationDatabasegetResolvedAnnotation in class AnnotationDatabase<NullnessAnnotation>o - an XMethod, XField, or XMethodParametergetMinimal - TODO: what does this mean?public void addDefaultMethodAnnotation(java.lang.String name,
NullnessAnnotation annotation)
addDefaultMethodAnnotation in class AnnotationDatabase<NullnessAnnotation>public void addDefaultAnnotation(AnnotationDatabase.Target target, java.lang.String c, NullnessAnnotation n)
INullnessAnnotationDatabaseaddDefaultAnnotation in interface INullnessAnnotationDatabaseaddDefaultAnnotation in class AnnotationDatabase<NullnessAnnotation>target - one of AnnotationDatabase.METHOD, AnnotationDatabase.FIELD,
AnnotationDatabase.PARAMETER, or AnnotationDatabase.ANYc - dotted class name of class default annotation pertains ton - the default NullnessAnnotationpublic void addFieldAnnotation(java.lang.String name,
java.lang.String name2,
java.lang.String sig,
boolean isStatic,
NullnessAnnotation annotation)
INullnessAnnotationDatabaseaddFieldAnnotation in interface INullnessAnnotationDatabaseaddFieldAnnotation in class AnnotationDatabase<NullnessAnnotation>name - dotted class namename2 - field namesig - field signatureisStatic - true if field is static, false otherwiseannotation - NullnessAnnotation to addpublic void addMethodAnnotation(java.lang.String name,
java.lang.String name2,
java.lang.String sig,
boolean isStatic,
NullnessAnnotation annotation)
INullnessAnnotationDatabaseaddMethodAnnotation in interface INullnessAnnotationDatabaseaddMethodAnnotation in class AnnotationDatabase<NullnessAnnotation>name - dotted class namename2 - method namesig - method signatureisStatic - true if method is static, false otherwiseannotation - NullnessAnnotation to addpublic void addMethodParameterAnnotation(java.lang.String name,
java.lang.String name2,
java.lang.String sig,
boolean isStatic,
int param,
NullnessAnnotation annotation)
INullnessAnnotationDatabaseaddMethodParameterAnnotation in interface INullnessAnnotationDatabaseaddMethodParameterAnnotation in class AnnotationDatabase<NullnessAnnotation>name - dotted class namename2 - method namesig - method signatureisStatic - true if method is static, false otherwiseparam - parameter (0 == first parameter)annotation - the NullnessAnnotation to addFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.