Class FeelToJuelTransformImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.feel.impl.juel.transform.FeelToJuelTransformImpl
-
- All Implemented Interfaces:
FeelToJuelTransform
public class FeelToJuelTransformImpl extends java.lang.Object implements FeelToJuelTransform
-
-
Field Summary
Fields Modifier and Type Field Description static FeelToJuelTransformer
COMPARISON_TRANSFORMER
static java.util.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.java.lang.String
transformEndpoint(java.lang.String endpoint, java.lang.String inputName)
Transform a FEEL endpoint expression to a JUEL expression.java.lang.String
transformSimplePositiveUnaryTest(java.lang.String simplePositiveUnaryTest, java.lang.String inputName)
Transform a FEEL simple positive unary test expression to a JUEL expression.java.lang.String
transformSimplePositiveUnaryTests(java.lang.String simplePositiveUnaryTests, java.lang.String inputName)
Transform a FEEL simple positive unary tests expression to a JUEL expression.java.lang.String
transformSimpleUnaryTests(java.lang.String simpleUnaryTests, java.lang.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 java.util.List<FeelToJuelTransformer> CUSTOM_FUNCTION_TRANSFORMERS
-
-
Method Detail
-
transformSimpleUnaryTests
public java.lang.String transformSimpleUnaryTests(java.lang.String simpleUnaryTests, java.lang.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 java.lang.String transformSimplePositiveUnaryTests(java.lang.String simplePositiveUnaryTests, java.lang.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 java.lang.String transformSimplePositiveUnaryTest(java.lang.String simplePositiveUnaryTest, java.lang.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 java.lang.String transformEndpoint(java.lang.String endpoint, java.lang.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
-
-