public abstract class

AbstractRepository

extends Object
java.lang.Object
   ↳ sun.reflect.generics.repository.AbstractRepository<T extends sun.reflect.generics.tree.Tree>
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

Protected Constructors
AbstractRepository(String rawSig, GenericsFactory f)
Constructor.
Protected Methods
Reifier getReifier()
Returns a Reifier used to convert parts of the AST into reflective objects.
T getTree()
Accessor for tree.
abstract T parse(String s)
Returns the AST for the genric type info of this entity.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

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 - the generic signature of the reflective object that this repository is servicing
f - a factory that will provide instances of reflective objects when this repository converts its AST

Protected Methods

protected Reifier getReifier ()

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

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

protected T getTree ()

Accessor for tree.

Returns
  • the cached AST this repository holds

protected abstract T parse (String s)

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

Parameters
s - a string representing the generic signature of this entity
Returns
  • the AST for the generic type info of this entity.