Class Transforms

java.lang.Object
net.hydromatic.filtex.Transforms

public class Transforms extends Object
Transforms to be applied to ASTs after parsing.
  • Method Details

    • mergeMultiValueNodes

      public static AstNode mergeMultiValueNodes(AstNode root, Op type, boolean mergeDifferentIsValue)
      Transforms the AST by combining sequential nodes of the same type into a single node. Used for merging number('=') and string('match') nodes of same type.
    • dateTransform

      public static AstNode dateTransform(AstNode root)
      Applies the following transformations on the date AST:
      • TODO
    • locationTransform

      public static AstNode locationTransform(AstNode root)
      Applies the following transformations on the location AST:
      • combine the value array on nodes of type '='
    • numberTransform

      public static AstNode numberTransform(AstNode root)
      Applies the following transformations on the number AST:
      • combine the value array on nodes of type '='