APIdia Launch Partner
Top Description Fields Constructors Methods
sun.reflect.generics.repository

public Class MethodRepository

extends ConstructorRepository
Class Inheritance
Imports
java.lang.reflect.Type, sun.reflect.generics.factory.GenericsFactory, sun.reflect.generics.visitor.Reifier

This class represents the generic type information for a method. The code is not dependent on a particular reflective implementation. It is designed to be used unchanged by at least core reflection and JDI.

Field Summary

Modifier and TypeField and Description
private volatile Type
returnType

The generic return type info.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Type
public Type
public static MethodRepository

Returns:

a MethodRepository that manages the generic type information represented in the signature rawSig
make
(String
- the generic signature of the reflective object that this repository is servicing
rawSig
,
GenericsFactory
- a factory that will provide instances of reflective objects when this repository converts its AST
f
)

Hides sun.reflect.generics.repository.ConstructorRepository.make.

Static factory method.

Inherited from sun.reflect.generics.repository.ConstructorRepository:
getExceptionTypesgetParameterTypesparse

Field Detail

returnTypeback to summary
private volatile Type returnType

The generic return type info. Lazily initialized.

Constructor Detail

MethodRepositoryback to summary
private MethodRepository(String rawSig, GenericsFactory f)

Method Detail

computeReturnTypeback to summary
private Type computeReturnType()
getReturnTypeback to summary
public Type getReturnType()
makeback to summary
public static MethodRepository make(String rawSig, GenericsFactory f)

Hides sun.reflect.generics.repository.ConstructorRepository.make.

Static factory method.

Parameters
rawSig:String

- the generic signature of the reflective object that this repository is servicing

f:GenericsFactory

- a factory that will provide instances of reflective objects when this repository converts its AST

Returns:MethodRepository

a MethodRepository that manages the generic type information represented in the signature rawSig