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
Modifier and TypeClassDescriptionfinal classClass<T>Instances of the classClassrepresent classes and interfaces in a running Java application.Modifier and TypeMethodDescriptionType[]Class.getGenericInterfaces()Returns theTypes representing the interfaces directly implemented by the class or interface represented by thisClassobject.Class.getGenericSuperclass()Returns theTyperepresenting the direct superclass of the entity (class, interface, primitive type or void) represented by thisClassobject. -
Uses of Type in java.lang.reflect
Subinterfaces of Type in java.lang.reflectModifier and TypeInterfaceDescriptioninterfaceGenericArrayTyperepresents an array type whose component type is either a parameterized type or a type variable.interfaceParameterizedType represents a parameterized type such asCollection<String>.interfaceTypeVariable<D extends GenericDeclaration>TypeVariable is the common superinterface for type variables of kinds.interfaceWildcardType represents a wildcard type expression, such as?,? extends Number, or? super Integer.Methods in java.lang.reflect that return TypeModifier and TypeMethodDescriptionType[]ParameterizedType.getActualTypeArguments()Returns an array ofTypeobjects representing the actual type arguments to this type.Type[]TypeVariable.getBounds()Returns an array ofTypeobjects representing the upper bound(s) of this type variable.GenericArrayType.getGenericComponentType()Returns aTypeobject representing the component type of this array.Type[]Constructor.getGenericExceptionTypes()Returns an array ofTypeobjects that represent the exceptions declared to be thrown by this executable object.Type[]Executable.getGenericExceptionTypes()Returns an array ofTypeobjects that represent the exceptions declared to be thrown by this executable object.Type[]Method.getGenericExceptionTypes()Returns an array ofTypeobjects that represent the exceptions declared to be thrown by this executable object.Type[]Constructor.getGenericParameterTypes()Returns an array ofTypeobjects that represent the formal parameter types, in declaration order, of the executable represented by this object.Type[]Executable.getGenericParameterTypes()Returns an array ofTypeobjects that represent the formal parameter types, in declaration order, of the executable represented by this object.Type[]Method.getGenericParameterTypes()Returns an array ofTypeobjects that represent the formal parameter types, in declaration order, of the executable represented by this object.Method.getGenericReturnType()Returns aTypeobject that represents the formal return type of the method represented by thisMethodobject.Field.getGenericType()Returns aTypeobject that represents the declared type for the field represented by thisFieldobject.RecordComponent.getGenericType()Returns aTypeobject that represents the declared type for this record component.Type[]WildcardType.getLowerBounds()Returns an array ofTypeobjects representing the lower bound(s) of this type variable.ParameterizedType.getOwnerType()Returns aTypeobject representing the type that this type is a member of.Parameter.getParameterizedType()Returns aTypeobject that identifies the parameterized type for the parameter represented by thisParameterobject.ParameterizedType.getRawType()Returns theTypeobject representing the class or interface that declared this type.AnnotatedType.getType()Returns the underlying type that this annotated type represents.Type[]WildcardType.getUpperBounds()Returns an array ofTypeobjects representing the upper bound(s) of this type variable.