public class ProvidedClassifier extends Object
Class
types an AnnotatedElement
provides.
Built in support for the Provides
annotationModifier and Type | Method and Description |
---|---|
static ProvidedClassifier |
instance() |
Set<TypeQualifier<?>> |
provides(AnnotatedElement element)
Determines the services that the specified annotation site provides
|
Set<TypeQualifier<?>> |
provides(AnnotationSet annotations)
Determines the services that the specified AnnotationSet provides.
|
Set<TypeQualifier<?>> |
provides(Class<?> type)
Determines the services that the specified type provides.
|
Set<TypeQualifier<?>> |
provides(Field field)
Determines the services a constant field provides
|
public Set<TypeQualifier<?>> provides(AnnotatedElement element)
element
- The annotation site to examineTypeQualifier
instances indicating the services the
annotation site providespublic Set<TypeQualifier<?>> provides(AnnotationSet annotations)
Provides.value()
or
inferred as follows:
annotations
- The AnnotationSet
to be examinedTypeQualifier
instances indicating the services the
type providespublic Set<TypeQualifier<?>> provides(Class<?> type)
Provides.value()
or inferred as
follows:
type
- The type to be examinedTypeQualifier
instances indicating the services the
type providespublic Set<TypeQualifier<?>> provides(Field field) throws IllegalArgumentException
field
- The field to be examined, must be a static final
fieldTypeQualifier
instances indicating the services the
field providesIllegalArgumentException
- if the field is not a static final
fieldpublic static ProvidedClassifier instance()