public abstract class AbstractFlowableShortHandExpressionFunction extends Object implements FlowableShortHandExpressionFunction
| Modifier and Type | Field and Description |
|---|---|
protected String |
functionName |
protected String |
localName |
protected Method |
method |
protected Pattern |
pattern |
protected String |
prefix |
protected String |
replacePattern |
protected String |
variableScopeName |
| Constructor and Description |
|---|
AbstractFlowableShortHandExpressionFunction(String variableScopeName,
List<String> functionNameOptions,
String functionName) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildOrWordGroup(List<String> options) |
String |
enhance(String expressionText) |
protected Method |
findMethod() |
Method |
functionMethod() |
protected abstract String |
getFinalFunctionPrefix() |
protected abstract List<String> |
getFunctionPrefixOptions() |
protected abstract boolean |
isMultiParameterFunction() |
protected boolean |
isNoParameterMethod()
Override and return true in case the method call does not have any parameters.
|
String |
localName() |
String |
prefix() |
protected String variableScopeName
protected String functionName
protected String prefix
protected String localName
protected Method method
protected Pattern pattern
protected String replacePattern
public AbstractFlowableShortHandExpressionFunction(String variableScopeName, List<String> functionNameOptions, String functionName)
variableScopeName - The name of the scoped variable that would be added to the generated functionfunctionNameOptions - The list of function names, e.g. equals, eqfunctionName - The function name to which all the others will be enhanced toprotected Method findMethod()
protected abstract String getFinalFunctionPrefix()
protected abstract boolean isMultiParameterFunction()
protected boolean isNoParameterMethod()
public String enhance(String expressionText)
enhance in interface FlowableExpressionEnhancerpublic String localName()
localName in interface FlowableFunctionDelegatepublic String prefix()
prefix in interface FlowableFunctionDelegatepublic Method functionMethod()
functionMethod in interface FlowableFunctionDelegateCopyright © 2019 Flowable. All rights reserved.