Class IntervalTransformer

    • 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.
      java.lang.String transform​(FeelToJuelTransform transform, java.lang.String feelExpression, java.lang.String inputName)
      Transform the FEEL expression to a JUEL expression.
      java.lang.String transformInterval​(FeelToJuelTransform transform, java.lang.String startIntervalSymbol, java.lang.String lowerEndpoint, java.lang.String upperEndpoint, java.lang.String stopIntervalSymbol, java.lang.String inputName)  
      protected java.lang.String transformLowerEndpointComparator​(java.lang.String startIntervalSymbol)  
      protected java.lang.String transformUpperEndpointComparator​(java.lang.String stopIntervalSymbol)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INTERVAL_PATTERN

        public static final java.util.regex.Pattern INTERVAL_PATTERN
    • Constructor Detail

      • IntervalTransformer

        public IntervalTransformer()
    • 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 interface FeelToJuelTransformer
        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 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 java.lang.String transformInterval​(FeelToJuelTransform transform,
                                                  java.lang.String startIntervalSymbol,
                                                  java.lang.String lowerEndpoint,
                                                  java.lang.String upperEndpoint,
                                                  java.lang.String stopIntervalSymbol,
                                                  java.lang.String inputName)
      • transformLowerEndpointComparator

        protected java.lang.String transformLowerEndpointComparator​(java.lang.String startIntervalSymbol)
      • transformUpperEndpointComparator

        protected java.lang.String transformUpperEndpointComparator​(java.lang.String stopIntervalSymbol)