< prev index next >

src/java.base/share/classes/sun/reflect/generics/scope/AbstractScope.java

Print this page

        

*** 30,43 **** /** * Abstract superclass for lazy scope objects, used when building * factories for generic information repositories. ! * The type parameter <tt>D</tt> represents the type of reflective * object whose scope this class is representing. * <p> To subclass this, all one needs to do is implement ! * <tt>computeEnclosingScope</tt> and the subclass' constructor. */ public abstract class AbstractScope<D extends GenericDeclaration> implements Scope { private final D recvr; // the declaration whose scope this instance represents --- 30,43 ---- /** * Abstract superclass for lazy scope objects, used when building * factories for generic information repositories. ! * The type parameter {@code D} represents the type of reflective * object whose scope this class is representing. * <p> To subclass this, all one needs to do is implement ! * {@code computeEnclosingScope} and the subclass' constructor. */ public abstract class AbstractScope<D extends GenericDeclaration> implements Scope { private final D recvr; // the declaration whose scope this instance represents
*** 52,64 **** * constructed instance will represent */ protected AbstractScope(D decl){ recvr = decl;} /** ! * Accessor for the receiver - the object whose scope this <tt>Scope</tt> * object represents. ! * @return The object whose scope this <tt>Scope</tt> object represents */ protected D getRecvr() {return recvr;} /** This method must be implemented by any concrete subclass. * It must return the enclosing scope of this scope. If this scope --- 52,64 ---- * constructed instance will represent */ protected AbstractScope(D decl){ recvr = decl;} /** ! * Accessor for the receiver - the object whose scope this {@code Scope} * object represents. ! * @return The object whose scope this {@code Scope} object represents */ protected D getRecvr() {return recvr;} /** This method must be implemented by any concrete subclass. * It must return the enclosing scope of this scope. If this scope
< prev index next >