org.eclipse.emf.common.util
Class Reflect
java.lang.Object
org.eclipse.emf.common.util.Reflect
public final class Reflect
- extends java.lang.Object
A utility class for helping implement reflective capabilities not available with Google Widget Toolkit,
i.e., specifically the ability to instance test
and to create typed arrays
.
This is provided in the regular core runtime only to support single sourcing of generated client models that are also targeting the EMF GWT runtime.
- Since:
- 2.7
Nested Class Summary |
static interface |
Reflect.Helper
An interface implemented by reflective helpers. |
Method Summary |
static boolean |
isInstance(java.lang.Class<?> class_,
java.lang.Object instance)
Do an instanceof test . |
static void |
register(java.lang.Class<?> class_,
Reflect.Helper helper)
Register a helper for the given class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Reflect
public Reflect()
register
public static void register(java.lang.Class<?> class_,
Reflect.Helper helper)
- Register a helper for the given class.
isInstance
public static boolean isInstance(java.lang.Class<?> class_,
java.lang.Object instance)
- Do an
instanceof test
.