public interface INullnessAnnotationDatabase
Modifier and Type | Method and Description |
---|---|
void |
addDefaultAnnotation(AnnotationDatabase.Target target,
String c,
NullnessAnnotation n)
Add a default annotation to the database.
|
void |
addFieldAnnotation(String cName,
String mName,
String mSig,
boolean isStatic,
NullnessAnnotation annotation)
Add a field annotation to the database.
|
void |
addMethodAnnotation(String cName,
String mName,
String mSig,
boolean isStatic,
NullnessAnnotation annotation)
Add a method annotation to the database.
|
void |
addMethodParameterAnnotation(String cName,
String mName,
String mSig,
boolean isStatic,
int param,
NullnessAnnotation annotation)
Add a method parameter annotation to the database.
|
NullnessAnnotation |
getResolvedAnnotation(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.
|
boolean parameterMustBeNonNull(XMethod m, int param)
m
- a methodparam
- parameter (0 == first parameter)@CheckForNull NullnessAnnotation getResolvedAnnotation(Object o, boolean getMinimal)
o
- an XMethod, XField, or XMethodParametergetMinimal
- TODO: what does this mean?void loadAuxiliaryAnnotations()
void addFieldAnnotation(@DottedClassName String cName, String mName, 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 String cName, String mName, 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 String cName, String mName, 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 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 NullnessAnnotationCopyright © 2003–2015. All rights reserved.