Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Uses of Interface
java.lang.reflect.Type

Packages that use Type
Package Description
java.dyn PROVISIONAL API, WORK IN PROGRESS: This package contains dynamic language support provided directly by the Java core class libraries and virtual machine. 
java.lang Provides classes that are fundamental to the design of the Java programming language. 
java.lang.reflect Provides classes and interfaces for obtaining reflective information about classes and objects. 
 

Uses of Type in java.dyn
 

Classes in java.dyn that implement Type
Modifier and Type Class and Description
 class MethodType
          A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.
 

Uses of Type in java.lang
 

Classes in java.lang that implement Type
Modifier and Type Class and Description
 class Class<T>
          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 and Description
 Type[] Class.getGenericInterfaces()
          Returns the Types representing the interfaces directly implemented by the class or interface represented by this object.
 Type Class.getGenericSuperclass()
          Returns the Type representing the direct superclass of the entity (class, interface, primitive type or void) represented by this Class.
 

Uses of Type in java.lang.reflect
 

Subinterfaces of Type in java.lang.reflect
Modifier and Type Interface and Description
 interface GenericArrayType
          GenericArrayType represents an array type whose component type is either a parameterized type or a type variable.
 interface ParameterizedType
          ParameterizedType represents a parameterized type such as Collection<String>.
 interface TypeVariable<D extends GenericDeclaration>
          TypeVariable is the common superinterface for type variables of kinds.
 interface WildcardType
          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 and Description
 Type[] ParameterizedType.getActualTypeArguments()
          Returns an array of Type objects representing the actual type arguments to this type.
 Type[] TypeVariable.getBounds()
          Returns an array of Type objects representing the upper bound(s) of this type variable.
 Type GenericArrayType.getGenericComponentType()
          Returns a Type object representing the component type of this array.
 Type[] Method.getGenericExceptionTypes()
          Returns an array of Type objects that represent the exceptions declared to be thrown by this Method object.
 Type[] Constructor.getGenericExceptionTypes()
          Returns an array of Type objects that represent the exceptions declared to be thrown by this Constructor object.
 Type[] Method.getGenericParameterTypes()
          Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this Method object.
 Type[] Constructor.getGenericParameterTypes()
          Returns an array of Type objects that represent the formal parameter types, in declaration order, of the method represented by this Constructor object.
 Type Method.getGenericReturnType()
          Returns a Type object that represents the formal return type of the method represented by this Method object.
 Type Field.getGenericType()
          Returns a Type object that represents the declared type for the field represented by this Field object.
 Type[] WildcardType.getLowerBounds()
          Returns an array of Type objects representing the lower bound(s) of this type variable.
 Type ParameterizedType.getOwnerType()
          Returns a Type object representing the type that this type is a member of.
 Type ParameterizedType.getRawType()
          Returns the Type object representing the class or interface that declared this type.
 Type[] WildcardType.getUpperBounds()
          Returns an array of Type objects representing the upper bound(s) of this type variable.
 


Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.