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

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.AnnotationDatabase<AnnotationEnum>
Direct Known Subclasses:
CheckReturnAnnotationDatabase, NullnessAnnotationDatabase

public class AnnotationDatabase<AnnotationEnum extends AnnotationEnumeration>
extends java.lang.Object

Author:
William Pugh

Field Summary
static java.lang.String ANY
           
static java.lang.String FIELD
           
static java.lang.String METHOD
           
static java.lang.String PARAMETER
           
 
Constructor Summary
AnnotationDatabase()
           
 
Method Summary
 void addDefaultAnnotation(java.lang.String 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 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)
           
 void addSyntheticElement(java.lang.Object o)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD

public static final java.lang.String FIELD
See Also:
Constant Field Values

METHOD

public static final java.lang.String METHOD
See Also:
Constant Field Values

PARAMETER

public static final java.lang.String PARAMETER
See Also:
Constant Field Values

ANY

public static final java.lang.String ANY
See Also:
Constant Field Values
Constructor Detail

AnnotationDatabase

public AnnotationDatabase()
Method Detail

addSyntheticElement

public void addSyntheticElement(java.lang.Object o)

addDirectAnnotation

public void addDirectAnnotation(java.lang.Object o,
                                AnnotationEnum n)

addDefaultAnnotation

public void addDefaultAnnotation(java.lang.String 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)

addDefaultMethodAnnotation

protected void addDefaultMethodAnnotation(java.lang.String cName,
                                          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)