Top Description Methods
javax.enterprise.inject.spi

public Interface AnnotatedParameter<X>

extends Annotated
Type Parameters
<X>
the type that declares the method or constructor
Imports
java.lang.annotation.Annotation, java.lang.reflect.Executable, .Member, .Parameter, java.util.LinkedHashSet, .Set

Represents a parameter of a method or constructor.

Authors
Gavin King, Pete Muir, Jozef Hartinger

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 AnnotatedCallable<X>

Returns:

the declaring callable
getDeclaringCallable
()

Get the declaring method or constructor.

public default Parameter

Returns:

the Parameter
getJavaParameter
()

Get the underlying Parameter.

public int

Returns:

the position of the parameter
getPosition
()

Get the position of the parameter in the method or constructor argument list.

Inherited from javax.enterprise.inject.spi.Annotated:
getAnnotationgetAnnotationsgetBaseTypegetTypeClosureisAnnotationPresent

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
getDeclaringCallableback to summary
public AnnotatedCallable<X> getDeclaringCallable()

Get the declaring method or constructor.

Returns:AnnotatedCallable<X>

the declaring callable

getJavaParameterback to summary
public default Parameter getJavaParameter()

Get the underlying Parameter.

Returns:Parameter

the Parameter

getPositionback to summary
public int getPosition()

Get the position of the parameter in the method or constructor argument list.

Returns:int

the position of the parameter