Class AbstractFlowableVariableExpressionFunction
java.lang.Object
org.flowable.common.engine.impl.el.function.AbstractFlowableVariableExpressionFunction
- All Implemented Interfaces:
FlowableFunctionDelegate,FlowableAstFunctionCreator
- Direct Known Subclasses:
AbstractVariableComparatorExpressionFunction,VariableBase64ExpressionFunction,VariableContainsAnyExpressionFunction,VariableContainsExpressionFunction,VariableEqualsExpressionFunction,VariableExistsExpressionFunction,VariableGetExpressionFunction,VariableGetOrDefaultExpressionFunction,VariableIsEmptyExpressionFunction,VariableIsNotEmptyExpressionFunction,VariableNotEqualsExpressionFunction
public abstract class AbstractFlowableVariableExpressionFunction
extends Object
implements FlowableAstFunctionCreator, FlowableFunctionDelegate
- Author:
- Joram Barrez, Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Collection<String>protected Methodprotected String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFlowableVariableExpressionFunction(String functionName) AbstractFlowableVariableExpressionFunction(List<String> functionNameOptions, String functionName) -
Method Summary
Modifier and TypeMethodDescriptioncreateFunction(String name, int index, AstParameters parameters, boolean varargs, FlowableExpressionParser parser) Create anAstFunctionbased on the provided name, index, parameters.protected AstNodecreateVariableNameNode(AstNode variableNode) protected MethodfindMethod(String functionName) The names of the functions that this creator can create.protected static ObjectgetVariableValue(VariableContainer variableContainer, String variableName) prefix()prefixes()protected static booleanvaluesAreNumbers(Object variableValue, Object actualValue)
-
Field Details
-
method
-
functionName
-
functionNamesOptions
-
variableScopeName
-
-
Constructor Details
-
AbstractFlowableVariableExpressionFunction
-
AbstractFlowableVariableExpressionFunction
-
-
Method Details
-
findMethod
-
prefix
- Specified by:
prefixin interfaceFlowableFunctionDelegate
-
prefixes
- Specified by:
prefixesin interfaceFlowableFunctionDelegate
-
localName
- Specified by:
localNamein interfaceFlowableFunctionDelegate
-
localNames
- Specified by:
localNamesin interfaceFlowableFunctionDelegate
-
functionMethod
- Specified by:
functionMethodin interfaceFlowableFunctionDelegate
-
getVariableValue
-
valuesAreNumbers
-
getFunctionNames
Description copied from interface:FlowableAstFunctionCreatorThe names of the functions that this creator can create.- Specified by:
getFunctionNamesin interfaceFlowableAstFunctionCreator
-
createFunction
public AstFunction createFunction(String name, int index, AstParameters parameters, boolean varargs, FlowableExpressionParser parser) Description copied from interface:FlowableAstFunctionCreatorCreate anAstFunctionbased on the provided name, index, parameters. Potentially creating new parameters to enhance the function.- Specified by:
createFunctionin interfaceFlowableAstFunctionCreator- Parameters:
name- the name of the functionindex- the indexparameters- the parameters for the functionvarargs- whether varargs is supportedparser- the parser for potentially creating identifiers
-
createVariableNameNode
-