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()
Returns the method that is invoked by JUEL.
|
Collection<String> |
getFunctionNames()
The names of the functions that this creator can create.
|
protected static Object |
getVariableValue(VariableContainer variableContainer,
String variableName) |
String |
localName()
The name of the method when used in an expression, like the second part of ${prefix:method()}.
|
Collection<String> |
localNames()
All the names of the method when used in an expression, like the second part of ${prefix:method()}.
|
String |
prefix()
The prefix of the method when used in an expression, like the first part of ${prefix:method()}.
|
Collection<String> |
prefixes()
All the prefixes of the method when used in an expression.
|
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()
FlowableFunctionDelegateFlowableFunctionDelegate instance.prefix in interface FlowableFunctionDelegatepublic Collection<String> prefixes()
FlowableFunctionDelegate${prefix:method()} or {$code ${alternativePrefix:method()}}.
Will be used to match the text of the expression to the actual FlowableFunctionDelegate instance.prefixes in interface FlowableFunctionDelegatepublic String localName()
FlowableFunctionDelegateFlowableFunctionDelegate instance.localName in interface FlowableFunctionDelegatepublic Collection<String> localNames()
FlowableFunctionDelegate${prefix:method()} or ${prefix:alternativeMethod()}.
Will be used to match the text of the expression to the actual FlowableFunctionDelegate instance.localNames in interface FlowableFunctionDelegatepublic Method functionMethod()
FlowableFunctionDelegatefunctionMethod 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 © 2023 Flowable. All rights reserved.