Package org.jboss.weld.resources
Interface ReflectionCache.AnnotationClass<T extends Annotation>
-
- Type Parameters:
T
- type the type of the annotation
- Enclosing interface:
- ReflectionCache
public static interface ReflectionCache.AnnotationClass<T extends Annotation>
Represents cached metadata about an annotation class. Compared toTypeStore
this class holds low-level metadata such as whether this annotation is a container for repeatable annotations.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Annotation>
getMetaAnnotations()
Annotation[]
getRepeatableAnnotations(Annotation annotation)
Retrieves repeatable annotations held by this container annotation instance.boolean
isRepeatableAnnotationContainer()
boolean
isScope()
-
-
-
Method Detail
-
getMetaAnnotations
Set<Annotation> getMetaAnnotations()
- Returns:
- the set of meta-annotations this annotation class is annotated with
-
isScope
boolean isScope()
- Returns:
- true iff this annotation represents a scope annotation
-
isRepeatableAnnotationContainer
boolean isRepeatableAnnotationContainer()
- Returns:
- true iff this annotation represents a container for repeatable annotations
-
getRepeatableAnnotations
Annotation[] getRepeatableAnnotations(Annotation annotation)
Retrieves repeatable annotations held by this container annotation instance.- Returns:
- repeatable annotations held by this container annotation instance
- Throws:
IllegalStateException
- if this annotation class is not a repeatable annotation container
-
-