public final class InvokeDynamicFunc
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Functions.Function1<java.lang.Object,java.lang.Object> |
invokeFunction(java.lang.String methodName)
A one-argument function which invokes the no-arg method on this argument
|
static Functions.Function1<java.lang.Object,java.lang.Object> |
invokeFunction(java.lang.String methodName,
java.lang.Object[] obj)
A one-argument action which invokes the one-arg method on this argument
|
static Functions.Function1<java.lang.Object,java.lang.Object> |
invokeFunctionWithOneArgOn(java.lang.Object obj,
java.lang.String methodName)
A one-argument function which invokes the method name specified on the given object, passing the function argument to the invoked
method.
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
invokeMethod(java.lang.String methodName)
A one-argument action which invokes the no-arg method on this argument
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
invokeMethod(java.lang.String methodName,
java.lang.Object[] obj)
A one-argument action which invokes the one-arg method on this argument
|
static Functions.Function0<java.lang.Void> |
invokeMethodWithNoArgsOn(java.lang.Object obj,
java.lang.String methodName)
A no-argument action which invokes the method name specified on the given object.
|
static Functions.Function1<java.lang.Object,java.lang.Void> |
invokeMethodWithOneArgOn(java.lang.Object obj,
java.lang.String methodName)
A one-argument action which invokes the method name specified on the given object, passing the function argument to the invoked method.
|
public static Functions.Function0<java.lang.Void> invokeMethodWithNoArgsOn(java.lang.Object obj, java.lang.String methodName)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- There is no method found having the specified method name on the given object, or more than one
methods have the specified namepublic static Functions.Function1<java.lang.Object,java.lang.Void> invokeMethodWithOneArgOn(java.lang.Object obj, java.lang.String methodName)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- There is no method found having the specified method name on the given object, or more than one
methods have the specified namepublic static Functions.Function1<java.lang.Object,java.lang.Object> invokeFunctionWithOneArgOn(java.lang.Object obj, java.lang.String methodName)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- There is no method found having the specified method name on the given object, or more than one
methods have the specified namepublic static Functions.Function1<java.lang.Object,java.lang.Void> invokeMethod(java.lang.String methodName)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- There is no method found having the specified method name on the given object, or more than one
methods have the specified namepublic static Functions.Function1<java.lang.Object,java.lang.Void> invokeMethod(java.lang.String methodName, java.lang.Object[] obj)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- There is no method found having the specified method name on the given object, or more than one
methods have the specified namepublic static Functions.Function1<java.lang.Object,java.lang.Object> invokeFunction(java.lang.String methodName)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- There is no method found having the specified method name on the given object, or more than one
methods have the specified namepublic static Functions.Function1<java.lang.Object,java.lang.Object> invokeFunction(java.lang.String methodName, java.lang.Object[] obj)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- There is no method found having the specified method name on the given object, or more than one
methods have the specified name