GrammarScope  4.0.0
Static Public Member Functions | Static Package Functions | List of all members
grammarscope.tweak.Invoke Class Reference

Static Public Member Functions

static boolean loadUnguarded (final String thisClassName) throws ClassNotFoundException
 

Static Package Functions

static public< T > T invokeUnguarded (final String thisClassName, final String thisMethodName, final Object... theseArgs) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
 
static public< T > T invoke (final String thisClassName, final String thisMethodName, final Object... theseArgs)
 

Detailed Description

Utility class to invoke class methods dynamically

Author
Bernard Bou

Member Function Documentation

◆ invoke()

static public<T> T grammarscope.tweak.Invoke.invoke ( final String  thisClassName,
final String  thisMethodName,
final Object...  theseArgs 
)
staticpackage

Dynamically invoke method (exception guarded)

Parameters
thisClassNameclass name
thisMethodNamemethod name
theseArgsarguments
<T>type of result
Returns
result

◆ invokeUnguarded()

static public<T> T grammarscope.tweak.Invoke.invokeUnguarded ( final String  thisClassName,
final String  thisMethodName,
final Object...  theseArgs 
) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
staticpackage

Dynamically invoke method (exception unguarded)

Parameters
thisClassNameclass name
thisMethodNamemethod name
theseArgsarguments
<T>type of result
Returns
result
Exceptions
ClassNotFoundExceptionexception
SecurityExceptionexception
NoSuchMethodExceptionexception
IllegalArgumentExceptionexception
IllegalAccessExceptionexception
InvocationTargetExceptionexception

◆ loadUnguarded()

static boolean grammarscope.tweak.Invoke.loadUnguarded ( final String  thisClassName) throws ClassNotFoundException
static

Dynamically load class (exception unguarded)

Parameters
thisClassNameclass name
Returns
always true
Exceptions
ClassNotFoundExceptionexception
SecurityExceptionexception

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