|
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.AnnotationDatabase<NullnessAnnotation>
edu.umd.cs.findbugs.ba.NullnessAnnotationDatabase
public class NullnessAnnotationDatabase
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.umd.cs.findbugs.ba.AnnotationDatabase |
|---|
AnnotationDatabase.Target |
| Field Summary |
|---|
| Fields inherited from class edu.umd.cs.findbugs.ba.AnnotationDatabase |
|---|
IGNORE_BUILTIN_ANNOTATIONS |
| Constructor Summary | |
|---|---|
NullnessAnnotationDatabase()
|
|
| Method Summary | |
|---|---|
void |
addDefaultAnnotation(AnnotationDatabase.Target target,
java.lang.String c,
NullnessAnnotation n)
Add a default annotation to the database. |
void |
addDefaultMethodAnnotation(java.lang.String name,
NullnessAnnotation annotation)
|
void |
addFieldAnnotation(java.lang.String name,
java.lang.String name2,
java.lang.String sig,
boolean isStatic,
NullnessAnnotation annotation)
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)
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)
Add a method parameter annotation to the database. |
static boolean |
assertsFirstParameterIsNonnull(XMethod m)
|
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. |
| Methods inherited from class edu.umd.cs.findbugs.ba.AnnotationDatabase |
|---|
addDirectAnnotation, annotationIsDirect, anyAnnotations, getDirectAnnotation, getUncachedResolvedAnnotation, setAddClassOnly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullnessAnnotationDatabase()
| Method Detail |
|---|
public void loadAuxiliaryAnnotations()
INullnessAnnotationDatabase
loadAuxiliaryAnnotations in interface INullnessAnnotationDatabaseloadAuxiliaryAnnotations in class AnnotationDatabase<NullnessAnnotation>
public boolean parameterMustBeNonNull(XMethod m,
int param)
INullnessAnnotationDatabase
parameterMustBeNonNull in interface INullnessAnnotationDatabasem - a methodparam - parameter (0 == first parameter)
@CheckForNull
public NullnessAnnotation getResolvedAnnotation(java.lang.Object o,
boolean getMinimal)
INullnessAnnotationDatabase
getResolvedAnnotation in interface INullnessAnnotationDatabasegetResolvedAnnotation in class AnnotationDatabase<NullnessAnnotation>o - an XMethod, XField, or XMethodParametergetMinimal - TODO: what does this mean?
public static boolean assertsFirstParameterIsNonnull(XMethod m)
m -
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 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 NullnessAnnotation
public void addFieldAnnotation(java.lang.String name,
java.lang.String name2,
java.lang.String sig,
boolean isStatic,
NullnessAnnotation annotation)
INullnessAnnotationDatabase
addFieldAnnotation in interface INullnessAnnotationDatabaseaddFieldAnnotation in class AnnotationDatabase<NullnessAnnotation>name - dotted class namename2 - field namesig - field signatureisStatic - true if field is static, false otherwiseannotation - NullnessAnnotation to add
public void addMethodAnnotation(java.lang.String name,
java.lang.String name2,
java.lang.String sig,
boolean isStatic,
NullnessAnnotation annotation)
INullnessAnnotationDatabase
addMethodAnnotation in interface INullnessAnnotationDatabaseaddMethodAnnotation in class AnnotationDatabase<NullnessAnnotation>name - dotted class namename2 - method namesig - method signatureisStatic - true if method is static, false otherwiseannotation - NullnessAnnotation to add
public void addMethodParameterAnnotation(java.lang.String name,
java.lang.String name2,
java.lang.String sig,
boolean isStatic,
int param,
NullnessAnnotation annotation)
INullnessAnnotationDatabase
addMethodParameterAnnotation 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 add
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||