Package org.hibernate.tool.schema.ast
Class GeneratedSqlScriptParser
- java.lang.Object
-
- antlr.Parser
-
- antlr.LLkParser
-
- org.hibernate.tool.schema.ast.GeneratedSqlScriptParser
-
- All Implemented Interfaces:
GeneratedSqlScriptParserTokenTypes
- Direct Known Subclasses:
SqlScriptParser
public class GeneratedSqlScriptParser extends antlr.LLkParser implements GeneratedSqlScriptParserTokenTypes
Lexer and parser used to extract single statements from import SQL script. Supports instructions/comments and quoted strings spread over multiple lines. Each statement must end with semicolon.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]_tokenNamesstatic antlr.collections.impl.BitSet_tokenSet_0static antlr.collections.impl.BitSet_tokenSet_1static antlr.collections.impl.BitSet_tokenSet_2static antlr.collections.impl.BitSet_tokenSet_3static antlr.collections.impl.BitSet_tokenSet_4static antlr.collections.impl.BitSet_tokenSet_5-
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
-
Fields inherited from interface org.hibernate.tool.schema.ast.GeneratedSqlScriptParserTokenTypes
BLOCK_COMMENT, CHAR, DELIMITER, EOF, ESCqs, LINE_COMMENT, NEWLINE, NULL_TREE_LOOKAHEAD, QUOTED_TEXT, SPACE, TAB
-
-
Constructor Summary
Constructors Modifier Constructor Description GeneratedSqlScriptParser(antlr.ParserSharedInputState state)GeneratedSqlScriptParser(antlr.TokenBuffer tokenBuf)protectedGeneratedSqlScriptParser(antlr.TokenBuffer tokenBuf, int k)GeneratedSqlScriptParser(antlr.TokenStream lexer)protectedGeneratedSqlScriptParser(antlr.TokenStream lexer, int k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterStatementPartNewline()voidblankSpacesToSkip()voidnewLineToSkip()voidnonSkippedChar()voidnonSkippedSpace()voidnonSkippedTab()protected voidout(antlr.Token token)protected voidout(java.lang.String stmt)voidquotedString()voidscript()protected voidskip()voidspaceToSkip()voidstatement()protected voidstatementEnded()voidstatementFirstPart()voidstatementPart()protected voidstatementStarted()voidtabToSkip()-
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
-
-
-
Field Detail
-
_tokenNames
public static final java.lang.String[] _tokenNames
-
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
-
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
-
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
-
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
-
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
-
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
-
-
Constructor Detail
-
GeneratedSqlScriptParser
protected GeneratedSqlScriptParser(antlr.TokenBuffer tokenBuf, int k)
-
GeneratedSqlScriptParser
public GeneratedSqlScriptParser(antlr.TokenBuffer tokenBuf)
-
GeneratedSqlScriptParser
protected GeneratedSqlScriptParser(antlr.TokenStream lexer, int k)
-
GeneratedSqlScriptParser
public GeneratedSqlScriptParser(antlr.TokenStream lexer)
-
GeneratedSqlScriptParser
public GeneratedSqlScriptParser(antlr.ParserSharedInputState state)
-
-
Method Detail
-
out
protected void out(java.lang.String stmt)
-
out
protected void out(antlr.Token token)
-
statementStarted
protected void statementStarted()
-
statementEnded
protected void statementEnded()
-
skip
protected void skip()
-
script
public final void script() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
blankSpacesToSkip
public final void blankSpacesToSkip() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
statement
public final void statement() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
statementFirstPart
public final void statementFirstPart() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
statementPart
public final void statementPart() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
afterStatementPartNewline
public final void afterStatementPartNewline() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
quotedString
public final void quotedString() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
nonSkippedChar
public final void nonSkippedChar() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
nonSkippedSpace
public final void nonSkippedSpace() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
nonSkippedTab
public final void nonSkippedTab() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
newLineToSkip
public final void newLineToSkip() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
spaceToSkip
public final void spaceToSkip() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
tabToSkip
public final void tabToSkip() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
-