Package com.jogamp.common.util
Class ReflectionUtil.MethodAccessor
java.lang.Object
com.jogamp.common.util.ReflectionUtil.MethodAccessor
- Enclosing class:
- ReflectionUtil
Convenient Method access class
-
Constructor Summary
ConstructorsConstructorDescriptionMethodAccessor(Class<?> clazz, String methodName, Class<?>... argTypes) Checkavailable()before using instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if method is available, otherwise false.callMethod(Object instance, Object... args) Checkavailable()before calling to avoid throwing a JogampRuntimeException.
-
Constructor Details
-
MethodAccessor
Checkavailable()before using instance.
-
-
Method Details
-
available
public boolean available()Returns true if method is available, otherwise false. -
callMethod
Checkavailable()before calling to avoid throwing a JogampRuntimeException.- Throws:
JogampRuntimeException- if method is not available
-