APIdia Launch Partner
Top Description Constructors Methods
sun.reflect.generics.scope

public Class MethodScope

extends AbstractScope<Method>
Class Inheritance
Imports
java.lang.reflect.Method

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected Scope

Returns:

the enclosing scope
computeEnclosingScope
()

Implements abstract sun.reflect.generics.scope.AbstractScope.computeEnclosingScope.

Overrides the abstract method in the superclass.

private Class<?>
public static MethodScope

Returns:

The type-variable scope for the method m
make
(Method
- A Method whose scope we want to obtain
m
)

Factory method.

Inherited from sun.reflect.generics.scope.AbstractScope:
getEnclosingScopegetRecvrlookup

Constructor Detail

MethodScopeback to summary
private MethodScope(Method m)

Method Detail

computeEnclosingScopeback to summary
protected Scope computeEnclosingScope()

Implements abstract sun.reflect.generics.scope.AbstractScope.computeEnclosingScope.

Overrides the abstract method in the superclass.

Returns:Scope

the enclosing scope

getEnclosingClassback to summary
private Class<?> getEnclosingClass()
makeback to summary
public static MethodScope make(Method m)

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

Parameters
m:Method

- A Method whose scope we want to obtain

Returns:MethodScope

The type-variable scope for the method m