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

public Class FieldRepository

extends AbstractRepository<TypeSignature>
Class Inheritance
Imports
java.lang.reflect.Type, sun.reflect.generics.factory.GenericsFactory, sun.reflect.generics.tree.TypeSignature, sun.reflect.generics.parser.SignatureParser, sun.reflect.generics.visitor.Reifier

This class represents the generic type information for a constructor. 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
genericType

The generic type info.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

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

Returns:

a FieldRepository 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
)

Static factory method.

protected TypeSignature
parse(String s)

Implements abstract sun.reflect.generics.repository.AbstractRepository.parse.

Returns the AST for the generic type info of this entity.

Inherited from sun.reflect.generics.repository.AbstractRepository:
getReifiergetTree

Field Detail

genericTypeback to summary
private volatile Type genericType

The generic type info. Lazily initialized.

Constructor Detail

FieldRepositoryback to summary
protected FieldRepository(String rawSig, GenericsFactory f)

Method Detail

computeGenericTypeback to summary
private Type computeGenericType()
getGenericTypeback to summary
public Type getGenericType()
makeback to summary
public static FieldRepository make(String rawSig, GenericsFactory f)

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:FieldRepository

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

parseback to summary
protected TypeSignature parse(String s)

Implements abstract sun.reflect.generics.repository.AbstractRepository.parse.

Doc from sun.reflect.generics.repository.AbstractRepository.parse.

Returns the AST for the generic type info of this entity.