aicas logo Jamaica 3.4 release 8

sun.reflect.generics.repository
Class AbstractRepository<T extends Tree>

java.lang.Object
  extended by sun.reflect.generics.repository.AbstractRepository<T>
Direct Known Subclasses:
FieldRepository, GenericDeclRepository

public abstract class AbstractRepository<T extends Tree>
extends Object

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.


Constructor Summary
protected AbstractRepository(String rawSig, GenericsFactory f)
          Constructor.
 
Method Summary
protected  Reifier getReifier()
          Returns a Reifier used to convert parts of the AST into reflective objects.
protected  T getTree()
          Accessor for tree.
protected abstract  T parse(String s)
          Returns the AST for the genric type info of this entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRepository

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
Method Detail

getTree

protected T getTree()
Accessor for tree.

Returns:
the cached AST this repository holds

getReifier

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

parse

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.

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.