sun.reflect.generics.repository
abstract public class: AbstractRepository [javadoc |
source]
java.lang.Object
sun.reflect.generics.repository.AbstractRepository
Direct Known Subclasses:
ConstructorRepository, FieldRepository, GenericDeclRepository, MethodRepository, ClassRepository
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: |
protected AbstractRepository(String rawSig,
GenericsFactory f) {
tree = parse(rawSig);
factory = 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
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from sun.reflect.generics.repository.AbstractRepository Detail: |
protected Reifier getReifier() {
return Reifier.make(getFactory());
}
Returns a Reifier used to convert parts of the
AST into reflective objects. |
protected T getTree() {
return tree;
}
|
abstract protected T parse(String s)
Returns the AST for the genric type info of this entity. |