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