public abstract class AbstractFlowableVariableExpressionFunction extends Object implements FlowableAstFunctionCreator, FlowableFunctionDelegate
| Modifier and Type | Field and Description |
|---|---|
protected String |
functionName |
protected Collection<String> |
functionNamesOptions |
protected Method |
method |
protected String |
variableScopeName |
| Constructor and Description |
|---|
AbstractFlowableVariableExpressionFunction(List<String> functionNameOptions,
String functionName) |
AbstractFlowableVariableExpressionFunction(String functionName) |
| Modifier and Type | Method and Description |
|---|---|
AstFunction |
createFunction(String name,
int index,
AstParameters parameters,
boolean varargs,
FlowableExpressionParser parser)
Create an
AstFunction based on the provided name, index, parameters. |
protected AstNode |
createVariableNameNode(AstNode variableNode) |
protected Method |
findMethod(String functionName) |
Method |
functionMethod() |
Collection<String> |
getFunctionNames()
The names of the functions that this creator can create.
|
protected static Object |
getVariableValue(VariableContainer variableContainer,
String variableName) |
String |
localName() |
Collection<String> |
localNames() |
String |
prefix() |
Collection<String> |
prefixes() |
protected static boolean |
valuesAreNumbers(Object variableValue,
Object actualValue) |
protected Method method
protected String functionName
protected Collection<String> functionNamesOptions
protected String variableScopeName
public AbstractFlowableVariableExpressionFunction(String functionName)
public String prefix()
prefix in interface FlowableFunctionDelegatepublic Collection<String> prefixes()
prefixes in interface FlowableFunctionDelegatepublic String localName()
localName in interface FlowableFunctionDelegatepublic Collection<String> localNames()
localNames in interface FlowableFunctionDelegatepublic Method functionMethod()
functionMethod in interface FlowableFunctionDelegateprotected static Object getVariableValue(VariableContainer variableContainer, String variableName)
protected static boolean valuesAreNumbers(Object variableValue, Object actualValue)
public Collection<String> getFunctionNames()
FlowableAstFunctionCreatorgetFunctionNames in interface FlowableAstFunctionCreatorpublic AstFunction createFunction(String name, int index, AstParameters parameters, boolean varargs, FlowableExpressionParser parser)
FlowableAstFunctionCreatorAstFunction based on the provided name, index, parameters.
Potentially creating new parameters to enhance the function.createFunction in interface FlowableAstFunctionCreatorname - the name of the functionindex - the indexparameters - the parameters for the functionvarargs - whether varargs is supportedparser - the parser for potentially creating identifiersCopyright © 2021 Flowable. All rights reserved.