Class ReflectionUtil.MethodAccessor

java.lang.Object
com.jogamp.common.util.ReflectionUtil.MethodAccessor
Enclosing class:
ReflectionUtil

public static class ReflectionUtil.MethodAccessor extends Object
Convenient Method access class
  • Constructor Details

    • MethodAccessor

      public MethodAccessor(Class<?> clazz, String methodName, Class<?>... argTypes)
      Check available() before using instance.
  • Method Details

    • available

      public boolean available()
      Returns true if method is available, otherwise false.
    • callMethod

      public Object callMethod(Object instance, Object... args)
      Check available() before calling to avoid throwing a JogampRuntimeException.
      Throws:
      JogampRuntimeException - if method is not available