|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.ba.npe.TypeQualifierNullnessAnnotationDatabase
public class TypeQualifierNullnessAnnotationDatabase
Implementation of INullnessAnnotationDatabase that is based on JSR-305 type qualifiers.
| Field Summary | |
|---|---|
TypeQualifierValue |
nonnullTypeQualifierValue
|
| Constructor Summary | |
|---|---|
TypeQualifierNullnessAnnotationDatabase()
|
|
| 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 sig,
boolean isStatic,
NullnessAnnotation annotation)
Add a method annotation to the database. |
void |
addMethodParameterAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String sig,
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. |
XMethod |
getXMethod(java.lang.String cName,
java.lang.String mName,
java.lang.String sig,
boolean isStatic)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final TypeQualifierValue nonnullTypeQualifierValue
| Constructor Detail |
|---|
public TypeQualifierNullnessAnnotationDatabase()
| Method Detail |
|---|
public NullnessAnnotation getResolvedAnnotation(java.lang.Object o,
boolean getMinimal)
INullnessAnnotationDatabase
getResolvedAnnotation in interface INullnessAnnotationDatabaseo - an XMethod, XField, or XMethodParametergetMinimal - TODO: what does this mean?
public boolean parameterMustBeNonNull(XMethod m,
int param)
INullnessAnnotationDatabase
parameterMustBeNonNull in interface INullnessAnnotationDatabasem - a methodparam - parameter (0 == first parameter)
public void addDefaultAnnotation(AnnotationDatabase.Target target,
java.lang.String c,
NullnessAnnotation n)
INullnessAnnotationDatabase
addDefaultAnnotation in interface INullnessAnnotationDatabasetarget - one of AnnotationDatabase.METHOD, AnnotationDatabase.FIELD, AnnotationDatabase.PARAMETER, or AnnotationDatabase.ANYc - dotted class name of class default annotation pertains ton - the default NullnessAnnotation
public void addFieldAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
NullnessAnnotation annotation)
INullnessAnnotationDatabase
addFieldAnnotation in interface INullnessAnnotationDatabasecName - dotted class namemName - field namemSig - field signatureisStatic - true if field is static, false otherwiseannotation - NullnessAnnotation to add
@CheckForNull
public XMethod getXMethod(java.lang.String cName,
java.lang.String mName,
java.lang.String sig,
boolean isStatic)
public void addMethodAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String sig,
boolean isStatic,
NullnessAnnotation annotation)
INullnessAnnotationDatabase
addMethodAnnotation in interface INullnessAnnotationDatabasecName - dotted class namemName - method namesig - method signatureisStatic - true if method is static, false otherwiseannotation - NullnessAnnotation to add
public void addMethodParameterAnnotation(@DottedClassName
java.lang.String cName,
java.lang.String mName,
java.lang.String sig,
boolean isStatic,
int param,
NullnessAnnotation annotation)
INullnessAnnotationDatabase
addMethodParameterAnnotation in interface INullnessAnnotationDatabasecName - dotted class namemName - method namesig - method signatureisStatic - true if method is static, false otherwiseparam - parameter (0 == first parameter)annotation - the NullnessAnnotation to addpublic void loadAuxiliaryAnnotations()
INullnessAnnotationDatabase
loadAuxiliaryAnnotations in interface INullnessAnnotationDatabase
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||