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

public abstract Class AbstractRepository<T extends Tree>

extends Object
Class Inheritance
Known Direct Subclasses
sun.reflect.generics.repository.FieldRepository, sun.reflect.generics.repository.GenericDeclRepository
Imports
sun.reflect.generics.factory.GenericsFactory, sun.reflect.generics.tree.Tree, sun.reflect.generics.visitor.Reifier

Abstract superclass for representing the generic type information for a reflective entity. 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 final GenericsFactory
private final T

Constructor Summary

AccessConstructor and Description
protected
AbstractRepository(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
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
private GenericsFactory
protected Reifier

Returns:

a Reifier used to convert parts of the AST into reflective objects
getReifier
()

Returns a Reifier used to convert parts of the AST into reflective objects.

protected T

Returns:

the cached AST this repository holds
getTree
()

Accessor for tree.

protected abstract T

Returns:

the AST for the generic type info of this entity.
parse
(String
- a string representing the generic signature of this entity
s
)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoryback to summary
private final GenericsFactory factory
treeback to summary
private final T tree

Constructor Detail

AbstractRepositoryback to summary
protected AbstractRepository(String rawSig, GenericsFactory f)

Constructor. Should only be used by subclasses. Concrete subclasses should make their constructors private and provide public factory methods.

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

Method Detail

getFactoryback to summary
private GenericsFactory getFactory()
getReifierback to summary
protected Reifier getReifier()

Returns a Reifier used to convert parts of the AST into reflective objects.

Returns:Reifier

a Reifier used to convert parts of the AST into reflective objects

getTreeback to summary
protected T getTree()

Accessor for tree.

Returns:T

the cached AST this repository holds

parseback to summary
protected abstract T parse(String s)

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

Parameters
s:String

- a string representing the generic signature of this entity

Returns:T

the AST for the generic type info of this entity.