public class NGenericStaticMethod
extends java.lang.Object
Constructor and Description |
---|
NGenericStaticMethod(com.javonet.internal.IGateway gm,
java.lang.Integer objectId,
NType[] genericTypes) |
Modifier and Type | Method and Description |
---|---|
<T> T |
invoke(java.lang.String methodName)
Invokes any parameter-less generic method on associated .NET object and returns result.
|
<T> T |
invoke(java.lang.String methodName,
java.lang.Object... parameters)
Invokes any generic method with parameters on associated .NET object and returns result.
|
public NGenericStaticMethod(com.javonet.internal.IGateway gm, java.lang.Integer objectId, NType[] genericTypes)
public <T> T invoke(java.lang.String methodName) throws JavonetException
T
- JAVA type to which the result returned by invoked method will be casted. Provide either JAVA value type like: integer, string, boolean or for reference type results please use NObjectmethodName
- Name of the method to be invokedJavonetException
- If .NET exception occurs during method invocationNObject.invoke(String, Object...)
public <T> T invoke(java.lang.String methodName, java.lang.Object... parameters) throws JavonetException
T
- JAVA type to which the result returned by invoked method will be casted. Provide either JAVA value type like: integer, string, boolean or for reference type results please use NObjectmethodName
- Name of the method to be invokedparameters
- Input parameters for method to be invoked. It can be JAVA primitive types or NObject to pass .NET referenceJavonetException
- If .NET exception occurs during method invocation