public class RtflFunctionBuilder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RtflFunctionBuilder.JavaMethodFunction
RtflFunction implementation that can execute a Java method and proxy its output to a proper RtflType object
|
| Constructor and Description |
|---|
RtflFunctionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static RtflFunction |
fromMethod(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.Class<?>[] parameters,
java.lang.Object obj)
Creates a new Rtfl function from the provided Java method
|
static RtflFunction |
fromStaticMethod(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.Class<?>[] parameters)
Creates a new Rtfl function from the provided static Java method
|
public static RtflFunction fromStaticMethod(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>[] parameters) throws java.lang.NoSuchMethodException, java.lang.SecurityException
clazz - The class which contains the methodname - The name of the methodparameters - The method's parameter typesjava.lang.SecurityException - If Java is not allowed to access the specified methodjava.lang.NoSuchMethodException - If the specified method does not existpublic static RtflFunction fromMethod(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>[] parameters, java.lang.Object obj) throws java.lang.NoSuchMethodException, java.lang.SecurityException
clazz - The class which contains the methodname - The name of the methodparameters - The method's parameter typesobj - The Object to use when invoking the methodjava.lang.SecurityException - If Java is not allowed to access the specified methodjava.lang.NoSuchMethodException - If the specified method does not exist