|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationEnvironment
Information holder about annotation processing. Implementations should delay the actual class loading until it's absolutely necessary. All methods that have annotation name as parameter will use unit's classloader to load the actual annotation class.
Method Summary | ||
---|---|---|
|
classHasConstructorAnnotatedWith(Class<A> annotation)
Get all classes who have some constructor annotated with annotation param. |
|
Set<Element<Annotation,Constructor<?>>> |
classHasConstructorAnnotatedWith(String annotationName)
Get all classes who have some constructor annotated with annotation param. |
|
|
classHasFieldAnnotatedWith(Class<A> annotation)
Get all classes who have some field annotated with annotation param. |
|
Set<Element<Annotation,Field>> |
classHasFieldAnnotatedWith(String annotationName)
Get all classes who have some field annotated with annotation param. |
|
|
classHasMethodAnnotatedWith(Class<A> annotation)
Get all classes who have some method annotated with annotation param. |
|
Set<Element<Annotation,Method>> |
classHasMethodAnnotatedWith(String annotationName)
Get all classes who have some method annotated with annotation param. |
|
|
classHasParameterAnnotatedWith(Class<A> annotation)
Get all classes who have some method's/constructor's parameter annotated with annotation param. |
|
Set<Element<Annotation,AnnotatedElement>> |
classHasParameterAnnotatedWith(String annotationName)
Get all classes who have some method's/constructor's parameter annotated with annotation param. |
|
|
classIsAnnotatedWith(Class<A> annotation)
Get all classes annotated with annotation param. |
|
Set<Element<Annotation,Class<?>>> |
classIsAnnotatedWith(String annotationName)
Get all classes annotated with annotation param. |
|
boolean |
hasClassAnnotatedWith(Class<? extends Annotation> annotation)
Does this annotation environment contain a class which is annotated with annotation parameter. |
|
boolean |
hasClassAnnotatedWith(String annotationName)
Does this annotation environment contain a class which is annotated with annotation parameter. |
Method Detail |
---|
boolean hasClassAnnotatedWith(Class<? extends Annotation> annotation)
annotation
- the annotation we're querying for
hasClassAnnotatedWith(Class annotation)
boolean hasClassAnnotatedWith(String annotationName)
annotationName
- the annotation name we're querying for
hasClassAnnotatedWith(Class annotation)
<A extends Annotation> Set<Element<A,Class<?>>> classIsAnnotatedWith(Class<A> annotation)
A
- the annotation typeannotation
- the annotation we're querying for
Set<Element<Annotation,Class<?>>> classIsAnnotatedWith(String annotationName)
annotationName
- the annotation name we're querying for
<A extends Annotation> Set<Element<A,Constructor<?>>> classHasConstructorAnnotatedWith(Class<A> annotation)
A
- the annotation typeannotation
- the annotation we're querying for
Set<Element<Annotation,Constructor<?>>> classHasConstructorAnnotatedWith(String annotationName)
annotationName
- the annotation name we're querying for
<A extends Annotation> Set<Element<A,Field>> classHasFieldAnnotatedWith(Class<A> annotation)
A
- the annotation typeannotation
- the annotation we're querying for
Set<Element<Annotation,Field>> classHasFieldAnnotatedWith(String annotationName)
annotationName
- the annotation name we're querying for
<A extends Annotation> Set<Element<A,Method>> classHasMethodAnnotatedWith(Class<A> annotation)
A
- the annotation typeannotation
- the annotation we're querying for
Set<Element<Annotation,Method>> classHasMethodAnnotatedWith(String annotationName)
annotationName
- the annotation name we're querying for
<A extends Annotation> Set<Element<A,AnnotatedElement>> classHasParameterAnnotatedWith(Class<A> annotation)
A
- the annotation typeannotation
- the annotation we're querying for
Set<Element<Annotation,AnnotatedElement>> classHasParameterAnnotatedWith(String annotationName)
annotationName
- the annotation name we're querying for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |