public class

ClassScope

extends AbstractScope<D extends GenericDeclaration>
implements Scope
java.lang.Object
   ↳ sun.reflect.generics.scope.AbstractScope<D extends java.lang.reflect.GenericDeclaration>
     ↳ sun.reflect.generics.scope.ClassScope

Class Overview

This class represents the scope containing the type variables of a class.

Summary

Public Methods
static ClassScope make(Class<?> c)
Factory method.
Protected Methods
Scope computeEnclosingScope()
Overrides the abstract method in the superclass.
[Expand]
Inherited Methods
From class sun.reflect.generics.scope.AbstractScope
From class java.lang.Object
From interface sun.reflect.generics.scope.Scope

Public Methods

public static ClassScope make (Class<?> c)

Factory method. Takes a Class object and creates a scope for it.

Parameters
c - a Class whose scope we want to obtain
Returns
  • The type-variable scope for the class c

Protected Methods

protected Scope computeEnclosingScope ()

Overrides the abstract method in the superclass.

Returns
  • the enclosing scope