APIdia Launch Partner
Top Description Methods
java.lang.reflect

public Interface AnnotatedTypeVariable

extends AnnotatedType
Known Direct Implementers
sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeVariableImpl

AnnotatedTypeVariable represents the potentially annotated use of a type variable, whose declaration may have bounds which themselves represent annotated uses of types.
Since
1.8
Java Language Specification
4.4 Type Variables

Method Summary

Modifier and TypeMethod and Description
public AnnotatedType[]

Returns:

the potentially annotated bounds of this type variable
getAnnotatedBounds
()

Returns the potentially annotated bounds of this type variable.

public AnnotatedType

Returns:

null
getAnnotatedOwnerType
()

Redeclares as abstract: java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type.

Inherited from java.lang.reflect.AnnotatedType:
getAnnotationgetAnnotationsgetDeclaredAnnotationsgetType

Method Detail

getAnnotatedBoundsback to summary
public AnnotatedType[] getAnnotatedBounds()

Returns the potentially annotated bounds of this type variable. If no bound is explicitly declared, the bound is unannotated Object.

Returns:AnnotatedType[]

the potentially annotated bounds of this type variable

See Also
TypeVariable#getBounds()
getAnnotatedOwnerTypeback to summary
public AnnotatedType getAnnotatedOwnerType()

Redeclares as abstract: java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type. For example, if this type is @TA O<T>.I<S>, return a representation of @TA O<T>.

Returns null for an AnnotatedType that is an instance of AnnotatedTypeVariable.

Returns:AnnotatedType

null

Annotations
@Override
Since
9