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

public Class ClassRepository

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

This class represents the generic type information for a class. 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
public static final ClassRepository
private volatile Type
superclass

The generic superclass info.

private volatile Type[]
superInterfaces

The generic superinterface info.

Inherited from sun.reflect.generics.repository.GenericDeclRepository:
EMPTY_TYPE_VARS

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Type
private Type[]
public Type
public Type[]
public static ClassRepository

Returns:

a ClassRepository 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 ClassSignature
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.GenericDeclRepository:
getTypeParameters

Field Detail

NONEback to summary
public static final ClassRepository NONE
superclassback to summary
private volatile Type superclass

The generic superclass info. Lazily initialized.

superInterfacesback to summary
private volatile Type[] superInterfaces

The generic superinterface info. Lazily initialized.

Constructor Detail

ClassRepositoryback to summary
private ClassRepository(String rawSig, GenericsFactory f)

Method Detail

computeSuperclassback to summary
private Type computeSuperclass()
computeSuperInterfacesback to summary
private Type[] computeSuperInterfaces()
getSuperclassback to summary
public Type getSuperclass()
getSuperInterfacesback to summary
public Type[] getSuperInterfaces()
makeback to summary
public static ClassRepository 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:ClassRepository

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

parseback to summary
protected ClassSignature 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.