de.upb.hni.vmagic
Interface Scope


public interface Scope

Scope.


Method Summary
 java.lang.Object resolve(java.lang.String identifier)
          Resolves the given identifier in this scope and its parent scopes.
<T> T
resolve(java.lang.String identifier, java.lang.Class<T> clazz)
          Resolves the given identifier in this scope and its parent scopes with a specific type.
 java.lang.Object resolveLocal(java.lang.String identifier)
          Resolves the given identifier in this scope.
<T> T
resolveLocal(java.lang.String identifier, java.lang.Class<T> clazz)
          Resolves the given identifier in this scope with a specific type.
 

Method Detail

resolve

java.lang.Object resolve(java.lang.String identifier)
Resolves the given identifier in this scope and its parent scopes.

Parameters:
identifier - the identifier
Returns:
the resolved object or null

resolve

<T> T resolve(java.lang.String identifier,
              java.lang.Class<T> clazz)
Resolves the given identifier in this scope and its parent scopes with a specific type.

Type Parameters:
T - the type
Parameters:
identifier - the identifier
clazz - the type
Returns:
the resolved object or null

resolveLocal

java.lang.Object resolveLocal(java.lang.String identifier)
Resolves the given identifier in this scope.

Parameters:
identifier - the identifier
Returns:
the resolved object or null

resolveLocal

<T> T resolveLocal(java.lang.String identifier,
                   java.lang.Class<T> clazz)
Resolves the given identifier in this scope with a specific type.

Type Parameters:
T - the type
Parameters:
identifier - the identifier
clazz - the type
Returns:
the resolved object or null