public class IntervalTransformer extends Object implements FeelToJuelTransformer
Modifier and Type | Field and Description |
---|---|
static Pattern |
INTERVAL_PATTERN |
static FeelEngineLogger |
LOG |
Constructor and Description |
---|
IntervalTransformer() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final FeelEngineLogger LOG
public static final Pattern INTERVAL_PATTERN
public boolean canTransform(String feelExpression)
FeelToJuelTransformer
canTransform
in interface FeelToJuelTransformer
feelExpression
- the FEEL expression to transformpublic String transform(FeelToJuelTransform transform, String feelExpression, String inputName)
FeelToJuelTransformer
transform
in interface FeelToJuelTransformer
transform
- the FeelToJuelTransform
to use for further transformsfeelExpression
- the FEEL expression to transforminputName
- the variable name of the input variable to test againstpublic String transformInterval(FeelToJuelTransform transform, String startIntervalSymbol, String lowerEndpoint, String upperEndpoint, String stopIntervalSymbol, String inputName)
protected String transformLowerEndpointComparator(String startIntervalSymbol)
Copyright © 2017. All rights reserved.