|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.reflect.generics.scope.AbstractScope<D>
public abstract class AbstractScope<D extends GenericDeclaration>
Abstract superclass for lazy scope objects, used when building factories for generic information repositories. The type parameter D represents the type of reflective object whose scope this class is representing.
To subclass this, all one needs to do is implement computeEnclosingScope and the subclass' constructor.
| Constructor Summary | |
|---|---|
protected |
AbstractScope(D decl)
Constructor. |
| Method Summary | |
|---|---|
protected abstract Scope |
computeEnclosingScope()
This method must be implemented by any concrete subclass. |
protected Scope |
getEnclosingScope()
Accessor for the enclosing scope, which is computed lazily and cached. |
protected D |
getRecvr()
Accessor for the receiver - the object whose scope this Scope object represents. |
TypeVariable<?> |
lookup(String name)
Lookup a type variable in the scope, using its name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractScope(D decl)
D - - A generic declaration whose scope the newly
constructed instance will represent| Method Detail |
|---|
protected D getRecvr()
protected abstract Scope computeEnclosingScope()
protected Scope getEnclosingScope()
public TypeVariable<?> lookup(String name)
lookup in interface Scopename - - the name of the type variable being looked up
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||