Uses of Interface
java.lang.reflect.Type

Packages that use Type
Package
Description
Provides classes that are fundamental to the design of the Java programming language.
Provides classes and interfaces for obtaining reflective information about classes and objects.
  • Uses of Type in java.lang

    Classes in java.lang that implement Type
    Modifier and Type
    Class
    Description
    final class 
    Instances of the class Class represent classes and interfaces in a running Java application.
    Methods in java.lang that return Type
    Modifier and Type
    Method
    Description
    Returns the Types representing the interfaces directly implemented by the class or interface represented by this Class object.
    Returns the Type representing the direct superclass of the entity (class, interface, primitive type or void) represented by this Class object.
  • Uses of Type in java.lang.reflect

    Subinterfaces of Type in java.lang.reflect
    Modifier and Type
    Interface
    Description
    interface 
    GenericArrayType represents an array type whose component type is either a parameterized type or a type variable.
    interface 
    ParameterizedType represents a parameterized type such as Collection<String>.
    interface 
    TypeVariable is the common superinterface for type variables of kinds.
    interface 
    WildcardType represents a wildcard type expression, such as ?, ? extends Number, or ? super Integer.
    Methods in java.lang.reflect that return Type
    Modifier and Type
    Method
    Description
    ParameterizedType.getActualTypeArguments()
    Returns an array of Type objects representing the actual type arguments to this type.
    TypeVariable.getBounds()
    Returns an array of Type objects representing the upper bound(s) of this type variable.
    GenericArrayType.getGenericComponentType()
    Returns a Type object representing the component type of this array.
    Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object.
    Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object.
    Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object.
    Returns an array of Type objects that represent the formal parameter types, in declaration order, of the executable represented by this object.
    Returns an array of Type objects that represent the formal parameter types, in declaration order, of the executable represented by this object.
    Returns an array of Type objects that represent the formal parameter types, in declaration order, of the executable represented by this object.
    Returns a Type object that represents the formal return type of the method represented by this Method object.
    Returns a Type object that represents the declared type for the field represented by this Field object.
    RecordComponent.getGenericType()
    Returns a Type object that represents the declared type for this record component.
    WildcardType.getLowerBounds()
    Returns an array of Type objects representing the lower bound(s) of this type variable.
    ParameterizedType.getOwnerType()
    Returns a Type object representing the type that this type is a member of.
    Returns a Type object that identifies the parameterized type for the parameter represented by this Parameter object.
    ParameterizedType.getRawType()
    Returns the Type object representing the class or interface that declared this type.
    AnnotatedType.getType()
    Returns the underlying type that this annotated type represents.
    WildcardType.getUpperBounds()
    Returns an array of Type objects representing the upper bound(s) of this type variable.