Package app.babylon.table.transform.dsl
Class TransformDslParser
java.lang.Object
app.babylon.table.transform.dsl.TransformDslParser
Parses a single transformation DSL statement into a
Transform.
The first word is always the command. Later keywords introduce named clauses:
using supplies transform-specific configuration such as a date format
or concat separator, by supplies a parse/search strategy such as
firstIn, lastIn, onlyIn, or exact, and
into names the output column. Quoted values are literals; parser
rules use literals for free text and patterns where punctuation or spaces
should be preserved.
-
Method Summary
Modifier and TypeMethodDescriptionparse(TokenStream tokens) parseScript(CharSequence script) readStatement(TokenStream tokens) static TransformDslParserstandard()with(String command, TransformCommandParser parser) with(Map<String, TransformCommandParser> parsers) withRoundScale(Class<T> type, ToIntFunction<T> roundScale) withType(String name, Column.Type type) withTypes(Map<String, Column.Type> types)
-
Method Details
-
standard
-
with
-
with
-
withType
-
withTypes
-
withRoundScale
-
parse
-
parseScript
-
readStatement
-
parse
-