public static class DataTypeGrammarParser.DataTypePattern extends Object
| Modifier and Type | Field and Description |
|---|---|
private DataTypeBuilder |
builder |
private int |
jdbcType |
private DataTypeGrammarParser.Pattern |
pattern |
| Modifier | Constructor and Description |
|---|---|
protected |
DataTypePattern(DataTypeGrammarParser.Pattern pattern,
int jdbcType) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEachFirstToken(Consumer<String> tokens) |
int |
jdbcType()
Get the JDBC type associated with this data type.
|
DataType |
match(TokenStream stream)
Look for a matching data type on the specified token stream.
|
DataType |
match(TokenStream stream,
Consumer<ParsingException> errors)
Look for a matching data type on the specified token stream.
|
String |
toString() |
private final DataTypeGrammarParser.Pattern pattern
private final DataTypeBuilder builder
private final int jdbcType
protected DataTypePattern(DataTypeGrammarParser.Pattern pattern, int jdbcType)
public int jdbcType()
JDBC type constantpublic DataType match(TokenStream stream)
stream - the stream of tokens containing the data type definitionpublic DataType match(TokenStream stream, Consumer<ParsingException> errors)
stream - the stream of tokens containing the data type definitionerrors - the function called for each parsing exception; may be null if not neededCopyright © 2020 JBoss by Red Hat. All rights reserved.