Top Description Methods
javax.enterprise.inject.spi

public Interface AnnotatedField<X>

extends AnnotatedMember<X>
Type Parameters
<X>
the declaring type
Imports
java.lang.annotation.Annotation, java.lang.reflect.Field, java.util.LinkedHashSet, .Set

Represents a field of a Java class.

Authors
Gavin King, Pete Muir
See Also
Field

Method Summary

Modifier and TypeMethod and Description
public default <T extends Annotation> Set<T>
getAnnotations(Class<T>
the class of the annotation type
annotationType
)

Implements javax.enterprise.inject.spi.Annotated.getAnnotations.

Get program element annotations of a certain annotation type.

public Field
Inherited from javax.enterprise.inject.spi.AnnotatedMember:
getDeclaringTypeisStatic

Method Detail

getAnnotationsback to summary
public default <T extends Annotation> Set<T> getAnnotations(Class<T> annotationType)

Implements javax.enterprise.inject.spi.Annotated.getAnnotations.

Doc from javax.enterprise.inject.spi.Annotated.getAnnotations.

Get program element annotations of a certain annotation type.

This method returns back all annotations, including repeatable annotations of this type. The behavior of this method is intended to be the same behavior as AnnotatedElement#getAnnotationsByType(Class), where repeatable annotations are supported.

Parameters
<T>
the type of the annotation
annotationType:Class<T>

the class of the annotation type

Returns:Set<T>

the program element annotations of the given annotation type, or an empty collection

Annotations
@Override
getJavaMemberback to summary
public Field getJavaMember()

Redeclares javax.enterprise.inject.spi.AnnotatedMember.getJavaMember.

Get the underlying Field.

Returns:Field

the Field