public abstract class AbstractCustomFEELFunction<B> extends BaseFEELFunction
FEELFunction.Param
Modifier and Type | Field and Description |
---|---|
protected B |
body |
protected EvaluationContext |
closureCtx |
Constructor and Description |
---|
AbstractCustomFEELFunction(String name,
List<FEELFunction.Param> parameters,
B body,
EvaluationContext ctx) |
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
getEvaluationContext() |
List<List<FEELFunction.Param>> |
getParameters()
Returns the parameter for each supported signature.
|
protected abstract Object |
internalInvoke(EvaluationContext ctx) |
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, setName
protected final B body
protected final EvaluationContext closureCtx
public AbstractCustomFEELFunction(String name, List<FEELFunction.Param> parameters, B body, EvaluationContext ctx)
public FEELFnResult<Object> invoke(EvaluationContext ctx, Object[] params)
BaseFEELFunction
invoke
in class BaseFEELFunction
protected abstract Object internalInvoke(EvaluationContext ctx)
public List<List<FEELFunction.Param>> getParameters()
FEELFunction
getParameters
in interface FEELFunction
getParameters
in class BaseFEELFunction
protected boolean isCustomFunction()
isCustomFunction
in class BaseFEELFunction
public boolean isProperClosure()
public EvaluationContext getEvaluationContext()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.