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 FeelToJuelTransformerCOMPARISON_TRANSFORMERstatic List<FeelToJuelTransformer>CUSTOM_FUNCTION_TRANSFORMERSstatic FeelToJuelTransformerENDPOINT_TRANSFORMERstatic FeelToJuelTransformerEQUAL_TRANSFORMERstatic FeelToJuelTransformerHYPHEN_TRANSFORMERstatic FeelToJuelTransformerINTERVAL_TRANSFORMERstatic FeelToJuelTransformerLIST_TRANSFORMERstatic FeelEngineLoggerLOGstatic FeelToJuelTransformerNOT_TRANSFORMER
-
Constructor Summary
Constructors Constructor Description FeelToJuelTransformImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomFunctionTransformer(FeelToJuelTransformer functionTransformer)Add a transformer for a custom function.StringtransformEndpoint(String endpoint, String inputName)Transform a FEEL endpoint expression to a JUEL expression.StringtransformSimplePositiveUnaryTest(String simplePositiveUnaryTest, String inputName)Transform a FEEL simple positive unary test expression to a JUEL expression.StringtransformSimplePositiveUnaryTests(String simplePositiveUnaryTests, String inputName)Transform a FEEL simple positive unary tests expression to a JUEL expression.StringtransformSimpleUnaryTests(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:FeelToJuelTransformTransform a FEEL simple unary tests expression to a JUEL expression.- Specified by:
transformSimpleUnaryTestsin 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:FeelToJuelTransformTransform a FEEL simple positive unary tests expression to a JUEL expression.- Specified by:
transformSimplePositiveUnaryTestsin 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:FeelToJuelTransformTransform a FEEL simple positive unary test expression to a JUEL expression.- Specified by:
transformSimplePositiveUnaryTestin 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:FeelToJuelTransformTransform a FEEL endpoint expression to a JUEL expression.- Specified by:
transformEndpointin 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:FeelToJuelTransformAdd a transformer for a custom function.- Specified by:
addCustomFunctionTransformerin interfaceFeelToJuelTransform- Parameters:
functionTransformer- the transformer for the custom function
-
-