Class ListTransformer
- java.lang.Object
-
- org.camunda.bpm.dmn.feel.impl.juel.transform.ListTransformer
-
- All Implemented Interfaces:
FeelToJuelTransformer
public class ListTransformer extends java.lang.Object implements FeelToJuelTransformer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMMA_SEPARATOR_REGEX
static FeelEngineLogger
LOG
-
Constructor Summary
Constructors Constructor Description ListTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTransform(java.lang.String feelExpression)
Test if an expression can be transformed by this transformer.protected java.util.List<java.lang.String>
collectExpressions(java.lang.String feelExpression)
protected java.lang.String
joinExpressions(java.util.List<java.lang.String> juelExpressions)
java.lang.String
transform(FeelToJuelTransform transform, java.lang.String feelExpression, java.lang.String inputName)
Transform the FEEL expression to a JUEL expression.protected java.util.List<java.lang.String>
transformExpressions(FeelToJuelTransform transform, java.lang.String feelExpression, java.lang.String inputName)
-
-
-
Field Detail
-
LOG
public static final FeelEngineLogger LOG
-
COMMA_SEPARATOR_REGEX
public static final java.lang.String COMMA_SEPARATOR_REGEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
canTransform
public boolean canTransform(java.lang.String feelExpression)
Description copied from interface:FeelToJuelTransformer
Test if an expression can be transformed by this transformer.- Specified by:
canTransform
in interfaceFeelToJuelTransformer
- Parameters:
feelExpression
- the FEEL expression to transform- Returns:
- true if the expression can be transformed by this transformer, false otherwise
-
transform
public java.lang.String transform(FeelToJuelTransform transform, java.lang.String feelExpression, java.lang.String inputName)
Description copied from interface:FeelToJuelTransformer
Transform the FEEL expression to a JUEL expression.- Specified by:
transform
in interfaceFeelToJuelTransformer
- Parameters:
transform
- theFeelToJuelTransform
to use for further transformsfeelExpression
- the FEEL expression to transforminputName
- the variable name of the input variable to test against- Returns:
- the resulting JUEL expression
-
collectExpressions
protected java.util.List<java.lang.String> collectExpressions(java.lang.String feelExpression)
-
transformExpressions
protected java.util.List<java.lang.String> transformExpressions(FeelToJuelTransform transform, java.lang.String feelExpression, java.lang.String inputName)
-
joinExpressions
protected java.lang.String joinExpressions(java.util.List<java.lang.String> juelExpressions)
-
-