public abstract class BaseFEELFunction extends Object implements FEELFunction
Constructor and Description |
---|
BaseFEELFunction(String name) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the function
|
List<List<String>> |
getParameterNames()
Returns the parameter names 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()
FEELFunction
getName
in interface FEELFunction
public void setName(String name)
public Symbol getSymbol()
FEELFunction
getSymbol
in interface FEELFunction
public Object invokeReflectively(EvaluationContext ctx, Object[] params)
FEELFunction
invokeReflectively
in interface FEELFunction
public Object invoke(EvaluationContext ctx, Object[] params)
ctx
- params
- public List<List<String>> getParameterNames()
FEELFunction
getParameterNames
in interface FEELFunction
protected boolean isCustomFunction()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.