org.camunda.bpm.dmn.feel.impl.juel.transform
Class FeelToJuelTransformImpl

java.lang.Object
  extended by org.camunda.bpm.dmn.feel.impl.juel.transform.FeelToJuelTransformImpl
All Implemented Interfaces:
FeelToJuelTransform

public class FeelToJuelTransformImpl
extends Object
implements FeelToJuelTransform


Field Summary
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
FeelToJuelTransformImpl()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

FeelToJuelTransformImpl

public FeelToJuelTransformImpl()
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 interface FeelToJuelTransform
Parameters:
simpleUnaryTests - the FEEL simple unary tests expression to transform
inputName - 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 interface FeelToJuelTransform
Parameters:
simplePositiveUnaryTests - the FEEL simple positive unary tests expression to transform
inputName - 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 interface FeelToJuelTransform
Parameters:
simplePositiveUnaryTest - the FEEL simple positive unary test expression to transform
inputName - 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 interface FeelToJuelTransform
Parameters:
endpoint - the FEEL endpoint expression to transform
inputName - 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 interface FeelToJuelTransform
Parameters:
functionTransformer - the transformer for the custom function


Copyright © 2017 camunda services GmbH. All rights reserved.