Class FeelToJuelTransformImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.feel.impl.juel.transform.FeelToJuelTransformImpl
-
- All Implemented Interfaces:
FeelToJuelTransform
public class FeelToJuelTransformImpl extends Object implements FeelToJuelTransform
-
-
Field Summary
Fields Modifier and Type Field Description static FeelToJuelTransformer
COMPARISON_TRANSFORMER
static List<FeelToJuelTransformer>
CUSTOM_FUNCTION_TRANSFORMERS
static FeelToJuelTransformer
ENDPOINT_TRANSFORMER
static FeelToJuelTransformer
EQUAL_TRANSFORMER
static FeelToJuelTransformer
HYPHEN_TRANSFORMER
static FeelToJuelTransformer
INTERVAL_TRANSFORMER
static FeelToJuelTransformer
LIST_TRANSFORMER
static FeelEngineLogger
LOG
static FeelToJuelTransformer
NOT_TRANSFORMER
-
Constructor Summary
Constructors Constructor Description FeelToJuelTransformImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomFunctionTransformer(FeelToJuelTransformer functionTransformer)
Add a transformer for a custom function.String
transformEndpoint(String endpoint, String inputName)
Transform a FEEL endpoint expression to a JUEL expression.String
transformSimplePositiveUnaryTest(String simplePositiveUnaryTest, String inputName)
Transform a FEEL simple positive unary test expression to a JUEL expression.String
transformSimplePositiveUnaryTests(String simplePositiveUnaryTests, String inputName)
Transform a FEEL simple positive unary tests expression to a JUEL expression.String
transformSimpleUnaryTests(String simpleUnaryTests, String inputName)
Transform a FEEL simple unary tests expression to a JUEL expression.
-
-
-
Field Detail
-
LOG
public static final FeelEngineLogger LOG
-
NOT_TRANSFORMER
public static final FeelToJuelTransformer NOT_TRANSFORMER
-
HYPHEN_TRANSFORMER
public static final FeelToJuelTransformer HYPHEN_TRANSFORMER
-
LIST_TRANSFORMER
public static final FeelToJuelTransformer LIST_TRANSFORMER
-
INTERVAL_TRANSFORMER
public static final FeelToJuelTransformer INTERVAL_TRANSFORMER
-
COMPARISON_TRANSFORMER
public static final FeelToJuelTransformer COMPARISON_TRANSFORMER
-
EQUAL_TRANSFORMER
public static final FeelToJuelTransformer EQUAL_TRANSFORMER
-
ENDPOINT_TRANSFORMER
public static final FeelToJuelTransformer ENDPOINT_TRANSFORMER
-
CUSTOM_FUNCTION_TRANSFORMERS
public static final List<FeelToJuelTransformer> CUSTOM_FUNCTION_TRANSFORMERS
-
-
Method Detail
-
transformSimpleUnaryTests
public String transformSimpleUnaryTests(String simpleUnaryTests, String inputName)
Description copied from interface:FeelToJuelTransform
Transform a FEEL simple unary tests expression to a JUEL expression.- Specified by:
transformSimpleUnaryTests
in interfaceFeelToJuelTransform
- Parameters:
simpleUnaryTests
- the FEEL simple unary tests expression to transforminputName
- the variable name of the input variable to test against- Returns:
- the resulting JUEL expression
-
transformSimplePositiveUnaryTests
public String transformSimplePositiveUnaryTests(String simplePositiveUnaryTests, String inputName)
Description copied from interface:FeelToJuelTransform
Transform a FEEL simple positive unary tests expression to a JUEL expression.- Specified by:
transformSimplePositiveUnaryTests
in interfaceFeelToJuelTransform
- Parameters:
simplePositiveUnaryTests
- the FEEL simple positive unary tests expression to transforminputName
- the variable name of the input variable to test against- Returns:
- the resulting JUEL expression
-
transformSimplePositiveUnaryTest
public String transformSimplePositiveUnaryTest(String simplePositiveUnaryTest, String inputName)
Description copied from interface:FeelToJuelTransform
Transform a FEEL simple positive unary test expression to a JUEL expression.- Specified by:
transformSimplePositiveUnaryTest
in interfaceFeelToJuelTransform
- Parameters:
simplePositiveUnaryTest
- the FEEL simple positive unary test expression to transforminputName
- the variable name of the input variable to test against- Returns:
- the resulting JUEL expression
-
transformEndpoint
public String transformEndpoint(String endpoint, String inputName)
Description copied from interface:FeelToJuelTransform
Transform a FEEL endpoint expression to a JUEL expression.- Specified by:
transformEndpoint
in interfaceFeelToJuelTransform
- Parameters:
endpoint
- the FEEL endpoint expression to transforminputName
- the variable name of the input variable to test against- Returns:
- the resulting JUEL expression
-
addCustomFunctionTransformer
public void addCustomFunctionTransformer(FeelToJuelTransformer functionTransformer)
Description copied from interface:FeelToJuelTransform
Add a transformer for a custom function.- Specified by:
addCustomFunctionTransformer
in interfaceFeelToJuelTransform
- Parameters:
functionTransformer
- the transformer for the custom function
-
-