de.upb.hni.vmagic.util
Class ResolveUtilities

java.lang.Object
  extended by de.upb.hni.vmagic.util.ResolveUtilities

public class ResolveUtilities
extends java.lang.Object

Resolve utilities.


Method Summary
static java.lang.Object resolvePath(DeclarativeRegion root, java.lang.String path)
          Resolves an path in a scope.
static
<T> T
resolvePath(DeclarativeRegion root, java.lang.String path, java.lang.Class<T> clazz)
          Resolves a path in a scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolvePath

public static java.lang.Object resolvePath(DeclarativeRegion root,
                                           java.lang.String path)
Resolves an path in a scope.

Parameters:
root - the scope
path - the path
Returns:
the object or null

resolvePath

public static <T> T resolvePath(DeclarativeRegion root,
                                java.lang.String path,
                                java.lang.Class<T> clazz)
Resolves a path in a scope.

Type Parameters:
T - the type
Parameters:
root - the scope
path - the path
clazz - the type
Returns:
the object or null