GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java™ (public API).
com.jogamp.common.util.ReflectionUtil.MethodAccessor Class Reference

Convenient Method access class. More...

Collaboration diagram for com.jogamp.common.util.ReflectionUtil.MethodAccessor:

Public Member Functions

 MethodAccessor (final Class<?> clazz, final String methodName, final Class<?> ... argTypes)
 Check available() before using instance. More...
 
boolean available ()
 Returns true if method is available, otherwise false. More...
 
Object callMethod (final Object instance, final Object ... args)
 Check available() before calling to avoid throwing a JogampRuntimeException. More...
 

Detailed Description

Convenient Method access class.

Definition at line 444 of file ReflectionUtil.java.

Constructor & Destructor Documentation

◆ MethodAccessor()

com.jogamp.common.util.ReflectionUtil.MethodAccessor.MethodAccessor ( final Class<?>  clazz,
final String  methodName,
final Class<?> ...  argTypes 
)

Check available() before using instance.

Definition at line 448 of file ReflectionUtil.java.

Here is the call graph for this function:

Member Function Documentation

◆ available()

boolean com.jogamp.common.util.ReflectionUtil.MethodAccessor.available ( )

Returns true if method is available, otherwise false.

Definition at line 455 of file ReflectionUtil.java.

◆ callMethod()

Object com.jogamp.common.util.ReflectionUtil.MethodAccessor.callMethod ( final Object  instance,
final Object ...  args 
)

Check available() before calling to avoid throwing a JogampRuntimeException.

Exceptions
JogampRuntimeExceptionif method is not available

Definition at line 463 of file ReflectionUtil.java.

Here is the call graph for this function:

The documentation for this class was generated from the following file: