Package liquibase.util.grammar
Class SimpleSqlGrammar
- java.lang.Object
-
- liquibase.util.grammar.SimpleSqlGrammar
-
- All Implemented Interfaces:
SimpleSqlGrammarConstants
public class SimpleSqlGrammar extends Object implements SimpleSqlGrammarConstants
An Simple SQL Grammar.
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.SimpleSqlGrammarTokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from interface liquibase.util.grammar.SimpleSqlGrammarConstants
COMPLEX_IDENTIFIER, D_QUOTED_STRING_HYBRID, DEFAULT, DIGIT, EMPTY_QUOTE, EOF, ESC_ANY_CHAR, ESC_D_QUOTE, ESC_S_QUOTE, FIRST_CHAR_SPECIAL_CHARS, LETTER, LINE_COMMENT, MULTI_LINE_COMMENT, S_CHAR_LITERAL, S_DOUBLE, S_IDENTIFIER, S_LONG, S_QUOTED_IDENTIFIER, S_QUOTED_STRING_HYBRID, SPECIAL_CHARS, SYMBOL, tokenImage, UNICODE_LETTERS, WHITESPACE
-
-
Constructor Summary
Constructors Constructor Description SimpleSqlGrammar(InputStream stream)Constructor with InputStream.SimpleSqlGrammar(InputStream stream, String encoding)Constructor with InputStream and supplied encodingSimpleSqlGrammar(Reader stream)Constructor.SimpleSqlGrammar(SimpleSqlGrammarTokenManager tm)Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable_tracing()Disable tracing.voidenable_tracing()Enable tracing.ParseExceptiongenerateParseException()Generate ParseException.TokengetNextToken()Get the next Token.TokengetToken(int index)Get the specific Token.voidReInit(InputStream stream)Reinitialise.voidReInit(InputStream stream, String encoding)Reinitialise.voidReInit(Reader stream)Reinitialise.voidReInit(SimpleSqlGrammarTokenManager tm)Reinitialise.booleantrace_enabled()Trace enabled.
-
-
-
Field Detail
-
token_source
public SimpleSqlGrammarTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
SimpleSqlGrammar
public SimpleSqlGrammar(InputStream stream)
Constructor with InputStream.
-
SimpleSqlGrammar
public SimpleSqlGrammar(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
SimpleSqlGrammar
public SimpleSqlGrammar(Reader stream)
Constructor.
-
SimpleSqlGrammar
public SimpleSqlGrammar(SimpleSqlGrammarTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
ReInit
public void ReInit(InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(InputStream stream, String encoding)
Reinitialise.
-
ReInit
public void ReInit(Reader stream)
Reinitialise.
-
ReInit
public void ReInit(SimpleSqlGrammarTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
trace_enabled
public final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-