public abstract class ReflectiveFunctionBase extends java.lang.Object implements Function
List<FunctionParameter>
form.Modifier and Type | Class and Description |
---|---|
static class |
ReflectiveFunctionBase.ParameterListBuilder
Helps build lists of
FunctionParameter . |
Modifier and Type | Field and Description |
---|---|
java.lang.reflect.Method |
method
Method that implements the function.
|
java.util.List<FunctionParameter> |
parameters
Types of parameter for the function call.
|
Constructor and Description |
---|
ReflectiveFunctionBase(java.lang.reflect.Method method)
ReflectiveFunctionBase constructor |
Modifier and Type | Method and Description |
---|---|
static ReflectiveFunctionBase.ParameterListBuilder |
builder()
Creates a ParameterListBuilder.
|
(package private) static boolean |
classHasPublicZeroArgsConstructor(java.lang.Class<?> clazz)
Verifies if given class has public constructor with zero arguments.
|
(package private) static java.lang.reflect.Method |
findMethod(java.lang.Class<?> clazz,
java.lang.String name)
Finds a method in a given class by name.
|
java.util.List<FunctionParameter> |
getParameters()
Returns the parameters of this function.
|
public final java.lang.reflect.Method method
public final java.util.List<FunctionParameter> parameters
public ReflectiveFunctionBase(java.lang.reflect.Method method)
ReflectiveFunctionBase
constructormethod
- method that is used to get type information frompublic java.util.List<FunctionParameter> getParameters()
getParameters
in interface Function
static boolean classHasPublicZeroArgsConstructor(java.lang.Class<?> clazz)
clazz
- class to verifystatic java.lang.reflect.Method findMethod(java.lang.Class<?> clazz, java.lang.String name)
clazz
- class to search method inname
- name of the method to findpublic static ReflectiveFunctionBase.ParameterListBuilder builder()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.