|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcheckers.types.AnnotationFactory
@Default(value="checkers.nonnull.quals.NonNull") public class AnnotationFactory
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<?> clazz)
|
AnnotationMirror |
fromName(CharSequence name)
Creates an AnnotationMirror given by a particular
fully-qualified name. |
protected DeclaredType |
typeFromName(CharSequence name)
A utility method that converts a CharSequence (usually a String) into a TypeMirror named thereby. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationFactory(ProcessingEnvironment env)
env - the ProcessingEnvironment for this factory| Method Detail |
|---|
public AnnotationMirror fromName(CharSequence name)
AnnotationMirror given by a particular
fully-qualified name.
name - the name of the annotation to create
AnnotationMirror of type name, or null if
name does not correspond to an annotation typepublic AnnotationMirror fromClass(Class<?> clazz)
protected DeclaredType typeFromName(CharSequence name)
CharSequence (usually a String) into a TypeMirror named thereby.
name - the name of a type
TypeMirror corresponding to that name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||