|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.ReflectionLoading
public class ReflectionLoading
The goal of this class is to make it easier to load stuff by reflection. You can hide all of the ugly exception catching, etc by using the static methods in this class.
Nested Class Summary | |
---|---|
static class |
ReflectionLoading.ReflectionLoadingException
This class encapsulates all of the exceptions that can be thrown when loading something by reflection. |
Method Summary | ||
---|---|---|
static
|
loadByReflection(String className,
Object... arguments)
You can use this as follows: String s = ReflectionLoading.loadByReflection("java.lang.String", "foo"); String s = ReflectionLoading.loadByReflection("java.lang.String"); Note that this uses generics for convenience, but this does nothing for compile-time error checking. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T loadByReflection(String className, Object... arguments)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |