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
Fields Modifier and Type Field Description protected StringfunctionNameprotected Collection<String>functionNamesOptionsprotected Methodmethodprotected StringvariableScopeName
-
Constructor Summary
Constructors Constructor Description AbstractFlowableVariableExpressionFunction(String functionName)AbstractFlowableVariableExpressionFunction(List<String> functionNameOptions, String functionName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AstFunctioncreateFunction(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)MethodfunctionMethod()Collection<String>getFunctionNames()The names of the functions that this creator can create.protected static ObjectgetVariableValue(VariableContainer variableContainer, String variableName)StringlocalName()Collection<String>localNames()Stringprefix()Collection<String>prefixes()protected static booleanvaluesAreNumbers(Object variableValue, Object actualValue)
-
-
-
Field Detail
-
method
protected Method method
-
functionName
protected String functionName
-
functionNamesOptions
protected Collection<String> functionNamesOptions
-
variableScopeName
protected String variableScopeName
-
-
Method Detail
-
prefix
public String prefix()
- Specified by:
prefixin interfaceFlowableFunctionDelegate
-
prefixes
public Collection<String> prefixes()
- Specified by:
prefixesin interfaceFlowableFunctionDelegate
-
localName
public String localName()
- Specified by:
localNamein interfaceFlowableFunctionDelegate
-
localNames
public Collection<String> localNames()
- Specified by:
localNamesin interfaceFlowableFunctionDelegate
-
functionMethod
public Method functionMethod()
- Specified by:
functionMethodin interfaceFlowableFunctionDelegate
-
getVariableValue
protected static Object getVariableValue(VariableContainer variableContainer, String variableName)
-
valuesAreNumbers
protected static boolean valuesAreNumbers(Object variableValue, Object actualValue)
-
getFunctionNames
public Collection<String> 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
-
-