Package net.hydromatic.filtex
Class Transforms
java.lang.Object
net.hydromatic.filtex.Transforms
Transforms to be applied to ASTs after parsing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AstNodedateTransform(AstNode root) Applies the following transformations on the date AST: TODOstatic AstNodelocationTransform(AstNode root) Applies the following transformations on the location AST: combine the value array on nodes of type '='static AstNodemergeMultiValueNodes(AstNode root, Op type, boolean mergeDifferentIsValue) Transforms the AST by combining sequential nodes of the same type into a single node.static AstNodenumberTransform(AstNode root) Applies the following transformations on the number AST: combine the value array on nodes of type '='
-
Method Details
-
mergeMultiValueNodes
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
Applies the following transformations on the date AST:- TODO
-
locationTransform
Applies the following transformations on the location AST:- combine the value array on nodes of type '='
-
numberTransform
Applies the following transformations on the number AST:- combine the value array on nodes of type '='
-