aicas logo Jamaica 3.4 release 8

sun.reflect.generics.scope
Class DummyScope

java.lang.Object
  extended by sun.reflect.generics.scope.DummyScope
All Implemented Interfaces:
Scope

public class DummyScope
extends Object
implements Scope

This class is used to provide enclosing scopes for top level classes. We cannot use null to represent such a scope, since the enclosing scope is computed lazily, and so the field storing it is null until it has been computed. Therefore, null is reserved to represent an as-yet-uncomputed scope, and cannot be used for any other kind of scope.


Method Summary
 TypeVariable<?> lookup(String name)
          Lookup a type variable in the scope, using its name.
static DummyScope make()
          Factory method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

make

public static DummyScope make()
Factory method. Enforces the singleton pattern - only one instance of this class ever exists.


lookup

public TypeVariable<?> lookup(String name)
Lookup a type variable in the scope, using its name. Always returns null.

Specified by:
lookup in interface Scope
Parameters:
name - - the name of the type variable being looked up
Returns:
null

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.