protected static class DataTypeGrammarParser.LiteralPattern extends Object implements DataTypeGrammarParser.Pattern
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addToBuilder |
protected String |
literal |
| Constructor and Description |
|---|
LiteralPattern(String literal) |
LiteralPattern(String literal,
boolean addToBuilder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
determineFirstTokens(Consumer<String> tokens) |
boolean |
match(TokenStream stream,
DataTypeBuilder builder,
Consumer<ParsingException> error) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisOptionalprotected final String literal
protected final boolean addToBuilder
public LiteralPattern(String literal)
public LiteralPattern(String literal, boolean addToBuilder)
public boolean match(TokenStream stream, DataTypeBuilder builder, Consumer<ParsingException> error)
match in interface DataTypeGrammarParser.Patternpublic boolean determineFirstTokens(Consumer<String> tokens)
determineFirstTokens in interface DataTypeGrammarParser.PatternCopyright © 2018 JBoss by Red Hat. All rights reserved.