|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INullnessAnnotationDatabase
Interface for querying nullness annotations on methods, fields, and parameters.
Method Summary | |
---|---|
void |
addDefaultAnnotation(AnnotationDatabase.Target target,
java.lang.String c,
NullnessAnnotation n)
Add a default annotation to the database. |
void |
addFieldAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
NullnessAnnotation annotation)
Add a field annotation to the database. |
void |
addMethodAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
NullnessAnnotation annotation)
Add a method annotation to the database. |
void |
addMethodParameterAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
int param,
NullnessAnnotation annotation)
Add a method parameter annotation to the database. |
NullnessAnnotation |
getResolvedAnnotation(java.lang.Object o,
boolean getMinimal)
Get a resolved NullnessAnnotation on given XMethod, XField, or XMethodParameter. |
void |
loadAuxiliaryAnnotations()
Load "built-in" annotations that might not be evident from the analyzed/referenced code. |
boolean |
parameterMustBeNonNull(XMethod m,
int param)
Determine whether given parameter must be non-null. |
Method Detail |
---|
boolean parameterMustBeNonNull(XMethod m, int param)
m
- a methodparam
- parameter (0 == first parameter)
@CheckForNull NullnessAnnotation getResolvedAnnotation(java.lang.Object o, boolean getMinimal)
o
- an XMethod, XField, or XMethodParametergetMinimal
- TODO: what does this mean?
void loadAuxiliaryAnnotations()
void addFieldAnnotation(@DottedClassName java.lang.String cName, java.lang.String mName, java.lang.String mSig, boolean isStatic, NullnessAnnotation annotation)
cName
- dotted class namemName
- field namemSig
- field signatureisStatic
- true if field is static, false otherwiseannotation
- NullnessAnnotation to addvoid addMethodAnnotation(@DottedClassName java.lang.String cName, java.lang.String mName, java.lang.String mSig, boolean isStatic, NullnessAnnotation annotation)
cName
- dotted class namemName
- method namemSig
- method signatureisStatic
- true if method is static, false otherwiseannotation
- NullnessAnnotation to addvoid addMethodParameterAnnotation(@DottedClassName java.lang.String cName, java.lang.String mName, java.lang.String mSig, boolean isStatic, int param, NullnessAnnotation annotation)
cName
- dotted class namemName
- method namemSig
- method signatureisStatic
- true if method is static, false otherwiseparam
- parameter (0 == first parameter)annotation
- the NullnessAnnotation to addvoid addDefaultAnnotation(AnnotationDatabase.Target target, @DottedClassName java.lang.String c, NullnessAnnotation n)
target
- one of AnnotationDatabase.METHOD, AnnotationDatabase.FIELD, AnnotationDatabase.PARAMETER, or AnnotationDatabase.ANYc
- dotted class name of class default annotation pertains ton
- the default NullnessAnnotation
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |