@Deprecated public class NullnessAnnotationDatabase extends AnnotationDatabase<NullnessAnnotation> implements INullnessAnnotationDatabase
AnnotationDatabase.Target
IGNORE_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, setAddClassOnly
public void loadAuxiliaryAnnotations()
INullnessAnnotationDatabase
loadAuxiliaryAnnotations
in interface INullnessAnnotationDatabase
loadAuxiliaryAnnotations
in class AnnotationDatabase<NullnessAnnotation>
public boolean parameterMustBeNonNull(XMethod m, int param)
INullnessAnnotationDatabase
parameterMustBeNonNull
in interface INullnessAnnotationDatabase
m
- a methodparam
- parameter (0 == first parameter)@CheckForNull public NullnessAnnotation getResolvedAnnotation(java.lang.Object o, boolean getMinimal)
INullnessAnnotationDatabase
getResolvedAnnotation
in interface INullnessAnnotationDatabase
getResolvedAnnotation
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)
INullnessAnnotationDatabase
addDefaultAnnotation
in interface INullnessAnnotationDatabase
addDefaultAnnotation
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)
INullnessAnnotationDatabase
addFieldAnnotation
in interface INullnessAnnotationDatabase
addFieldAnnotation
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)
INullnessAnnotationDatabase
addMethodAnnotation
in interface INullnessAnnotationDatabase
addMethodAnnotation
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)
INullnessAnnotationDatabase
addMethodParameterAnnotation
in interface INullnessAnnotationDatabase
addMethodParameterAnnotation
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.