|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jogamp.common.util.ReflectionUtil.MethodAccessor
public static class ReflectionUtil.MethodAccessor
Convenient Method access class
| Constructor Summary | |
|---|---|
ReflectionUtil.MethodAccessor(Class<?> clazz,
String methodName,
Class<?>... argTypes)
Check available() before using instance. |
|
| Method Summary | |
|---|---|
boolean |
available()
Returns true if method is available, otherwise false. |
Object |
callMethod(Object instance,
Object... args)
Check available() before calling to avoid throwing a JogampRuntimeException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionUtil.MethodAccessor(Class<?> clazz,
String methodName,
Class<?>... argTypes)
available() before using instance.
| Method Detail |
|---|
public boolean available()
public Object callMethod(Object instance,
Object... args)
available() before calling to avoid throwing a JogampRuntimeException.
JogampRuntimeException - if method is not available
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||