public class CompiledCustomFEELFunction extends BaseFEELFunction
| Constructor and Description |
|---|
CompiledCustomFEELFunction(String name,
List<String> parameters,
Function<EvaluationContext,Object> body) |
CompiledCustomFEELFunction(String name,
List<String> parameters,
Function<EvaluationContext,Object> body,
EvaluationContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
EvaluationContext |
getEvaluationContext() |
List<List<String>> |
getParameterNames()
Returns the parameter names for each supported signature.
|
FEELFnResult<Object> |
invoke(EvaluationContext ctx,
Object[] params)
this method should be overriden by custom function implementations that should be invoked reflectively
|
protected boolean |
isCustomFunction() |
boolean |
isProperClosure() |
String |
toString() |
getName, getSymbol, invokeReflectively, setNamepublic CompiledCustomFEELFunction(String name, List<String> parameters, Function<EvaluationContext,Object> body)
public CompiledCustomFEELFunction(String name, List<String> parameters, Function<EvaluationContext,Object> body, EvaluationContext ctx)
public List<List<String>> getParameterNames()
FEELFunctiongetParameterNames in interface FEELFunctiongetParameterNames in class BaseFEELFunctionpublic boolean isProperClosure()
public EvaluationContext getEvaluationContext()
public FEELFnResult<Object> invoke(EvaluationContext ctx, Object[] params)
BaseFEELFunctioninvoke in class BaseFEELFunctionprotected boolean isCustomFunction()
isCustomFunction in class BaseFEELFunctionCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.