public static class ReflectionUtil.MethodAccessor extends Object
| Constructor | Description |
|---|---|
MethodAccessor(Class<?> clazz,
String methodName,
Class<?>... argTypes) |
Check
available() before using instance. |
| Modifier and Type | Method | Description |
|---|---|---|
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. |
public MethodAccessor(Class<?> clazz, String methodName, Class<?>... argTypes)
available() before using instance.public boolean available()
public Object callMethod(Object instance, Object... args)
available() before calling to avoid throwing a JogampRuntimeException.JogampRuntimeException - if method is not available