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

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

public class IntervalTransformer
extends Object
implements FeelToJuelTransformer


Field Summary
static Pattern INTERVAL_PATTERN
           
static FeelEngineLogger LOG
           
 
Constructor Summary
IntervalTransformer()
           
 
Method Summary
 boolean canTransform(String feelExpression)
          Test if an expression can be transformed by this transformer.
 String transform(FeelToJuelTransform transform, String feelExpression, String inputName)
          Transform the FEEL expression to a JUEL expression.
 String transformInterval(FeelToJuelTransform transform, String startIntervalSymbol, String lowerEndpoint, String upperEndpoint, String stopIntervalSymbol, String inputName)
           
protected  String transformLowerEndpointComparator(String startIntervalSymbol)
           
protected  String transformUpperEndpointComparator(String stopIntervalSymbol)
           
 
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

INTERVAL_PATTERN

public static final Pattern INTERVAL_PATTERN
Constructor Detail

IntervalTransformer

public IntervalTransformer()
Method Detail

canTransform

public boolean canTransform(String feelExpression)
Description copied from interface: FeelToJuelTransformer
Test if an expression can be transformed by this transformer.

Specified by:
canTransform in interface FeelToJuelTransformer
Parameters:
feelExpression - the FEEL expression to transform
Returns:
true if the expression can be transformed by this transformer, false otherwise

transform

public String transform(FeelToJuelTransform transform,
                        String feelExpression,
                        String inputName)
Description copied from interface: FeelToJuelTransformer
Transform the FEEL expression to a JUEL expression.

Specified by:
transform in interface FeelToJuelTransformer
Parameters:
transform - the FeelToJuelTransform to use for further transforms
feelExpression - the FEEL expression to transform
inputName - the variable name of the input variable to test against
Returns:
the resulting JUEL expression

transformInterval

public String transformInterval(FeelToJuelTransform transform,
                                String startIntervalSymbol,
                                String lowerEndpoint,
                                String upperEndpoint,
                                String stopIntervalSymbol,
                                String inputName)

transformLowerEndpointComparator

protected String transformLowerEndpointComparator(String startIntervalSymbol)

transformUpperEndpointComparator

protected String transformUpperEndpointComparator(String stopIntervalSymbol)


Copyright © 2017 camunda services GmbH. All rights reserved.