checkers.types
Class AnnotationFactory

java.lang.Object
  extended by checkers.types.AnnotationFactory

@Default(value="checkers.nullness.quals.NonNull")
public class AnnotationFactory
extends Object

Creates new annotations as AnnotationMirrors that may be added to AnnotatedTypeMirrors.


Constructor Summary
AnnotationFactory(ProcessingEnvironment env)
          Creates an annotation factory.
 
Method Summary
 AnnotationMirror fromClass(Class<? extends Annotation> clazz)
          Creates an AnnotationMirror given by a particular annotation class.
 AnnotationMirror fromName(CharSequence name)
          Creates an AnnotationMirror given by a particular fully-qualified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationFactory

public AnnotationFactory(ProcessingEnvironment env)
Creates an annotation factory.

Parameters:
env - the ProcessingEnvironment for this factory
Method Detail

fromName

public AnnotationMirror fromName(CharSequence name)
Creates an AnnotationMirror given by a particular fully-qualified name.

Parameters:
name - the name of the annotation to create
Returns:
an AnnotationMirror of type name

fromClass

public AnnotationMirror fromClass(Class<? extends Annotation> clazz)
Creates an AnnotationMirror given by a particular annotation class.

Parameters:
clazz - the annotation class
Returns:
an AnnotationMirror of type given type