edu.umd.cs.findbugs.ba
Class AnnotationDatabase<AnnotationEnum extends AnnotationEnumeration<AnnotationEnum>>
java.lang.Object
edu.umd.cs.findbugs.ba.AnnotationDatabase<AnnotationEnum>
- Direct Known Subclasses:
- CheckReturnAnnotationDatabase, NullnessAnnotationDatabase
public class AnnotationDatabase<AnnotationEnum extends AnnotationEnumeration<AnnotationEnum>>
- extends java.lang.Object
Database to keep track of annotated fields/methods/classes/etc.
for a particular kind of annotation.
- Author:
- William Pugh
Method Summary |
void |
addDefaultAnnotation(AnnotationDatabase.Target target,
java.lang.String c,
AnnotationEnum n)
|
protected void |
addDefaultMethodAnnotation(java.lang.String cName,
AnnotationEnum annotation)
|
void |
addDirectAnnotation(java.lang.Object o,
AnnotationEnum n)
|
protected void |
addFieldAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
AnnotationEnum annotation)
|
protected void |
addMethodAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
AnnotationEnum annotation)
|
protected void |
addMethodParameterAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
int param,
AnnotationEnum annotation)
|
boolean |
annotationIsDirect(java.lang.Object o)
|
boolean |
anyAnnotations(AnnotationEnum n)
|
AnnotationEnum |
getResolvedAnnotation(java.lang.Object o,
boolean getMinimal)
|
AnnotationEnum |
getUncachedResolvedAnnotation(java.lang.Object o,
boolean getMinimal)
|
void |
loadAuxiliaryAnnotations()
|
boolean |
setAddClassOnly(boolean newValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IGNORE_BUILTIN_ANNOTATIONS
public static final boolean IGNORE_BUILTIN_ANNOTATIONS
AnnotationDatabase
public AnnotationDatabase()
loadAuxiliaryAnnotations
public void loadAuxiliaryAnnotations()
addDirectAnnotation
public void addDirectAnnotation(java.lang.Object o,
AnnotationEnum n)
addDefaultAnnotation
public void addDefaultAnnotation(AnnotationDatabase.Target target,
java.lang.String c,
AnnotationEnum n)
anyAnnotations
public boolean anyAnnotations(AnnotationEnum n)
getResolvedAnnotation
@CheckForNull
public AnnotationEnum getResolvedAnnotation(java.lang.Object o,
boolean getMinimal)
annotationIsDirect
public boolean annotationIsDirect(java.lang.Object o)
getUncachedResolvedAnnotation
@CheckForNull
public AnnotationEnum getUncachedResolvedAnnotation(java.lang.Object o,
boolean getMinimal)
setAddClassOnly
public boolean setAddClassOnly(boolean newValue)
addDefaultMethodAnnotation
protected void addDefaultMethodAnnotation(java.lang.String cName,
AnnotationEnum annotation)
addFieldAnnotation
protected void addFieldAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
AnnotationEnum annotation)
addMethodAnnotation
protected void addMethodAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
AnnotationEnum annotation)
addMethodParameterAnnotation
protected void addMethodParameterAnnotation(java.lang.String cName,
java.lang.String mName,
java.lang.String mSig,
boolean isStatic,
int param,
AnnotationEnum annotation)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.