FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba
Class AnnotationDatabase<AnnotationEnum extends AnnotationEnumeration<AnnotationEnum>>

java.lang.Object
  extended by 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

Nested Class Summary
static class AnnotationDatabase.Target
           
 
Field Summary
static boolean IGNORE_BUILTIN_ANNOTATIONS
           
 
Constructor Summary
AnnotationDatabase()
           
 
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 getDirectAnnotation(java.lang.Object o)
           
 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
 

Field Detail

IGNORE_BUILTIN_ANNOTATIONS

public static final boolean IGNORE_BUILTIN_ANNOTATIONS
Constructor Detail

AnnotationDatabase

public AnnotationDatabase()
Method Detail

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)

getDirectAnnotation

public AnnotationEnum getDirectAnnotation(java.lang.Object o)
Parameters:
o -
Returns:

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(@DottedClassName
                                   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™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.