|
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 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 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 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 add
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |