public abstract class BaseFEELFunction extends Object implements FEELFunction
FEELFunction.Param| Constructor and Description |
|---|
BaseFEELFunction(String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the function
|
List<List<FEELFunction.Param>> |
getParameters()
Returns the parameter for each supported signature.
|
Symbol |
getSymbol()
Returns the Symbol of the function
|
Object |
invoke(EvaluationContext ctx,
Object[] params)
this method should be overriden by custom function implementations that should be invoked reflectively
|
Object |
invokeReflectively(EvaluationContext ctx,
Object[] params)
Invokes the function reflectively based on the parameters
|
protected boolean |
isCustomFunction() |
void |
setName(String name) |
public BaseFEELFunction(String name)
public String getName()
FEELFunctiongetName in interface FEELFunctionpublic void setName(String name)
public Symbol getSymbol()
FEELFunctiongetSymbol in interface FEELFunctionpublic Object invokeReflectively(EvaluationContext ctx, Object[] params)
FEELFunctioninvokeReflectively in interface FEELFunctionpublic Object invoke(EvaluationContext ctx, Object[] params)
ctx - params - public List<List<FEELFunction.Param>> getParameters()
FEELFunctiongetParameters in interface FEELFunctionprotected boolean isCustomFunction()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.