public class

MethodScope

extends AbstractScope<D extends GenericDeclaration>
java.lang.Object
   ↳ sun.reflect.generics.scope.AbstractScope<D extends java.lang.reflect.GenericDeclaration>
     ↳ sun.reflect.generics.scope.MethodScope

Class Overview

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

Summary

Public Methods
static MethodScope make(Method m)
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 MethodScope make (Method m)

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

Parameters
m - A Method whose scope we want to obtain
Returns
  • The type-variable scope for the method m

Protected Methods

protected Scope computeEnclosingScope ()

Overrides the abstract method in the superclass.

Returns
  • the enclosing scope