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.
Modifier and Type | Field and Description |
---|---|
private static final DummyScope |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public TypeVariable | Returns: null- the name of the type variable being looked up name)Implements sun. Lookup a type variable in the scope, using its name. |
public static DummyScope |
singleton | back to summary |
---|---|
private static final DummyScope singleton |
DummyScope | back to summary |
---|---|
private DummyScope() |
lookup | back to summary |
---|---|
public TypeVariable Implements sun. Lookup a type variable in the scope, using its name. Always returns
|
make | back to summary |
---|---|
public static DummyScope make() Factory method. Enforces the singleton pattern - only one instance of this class ever exists. |