Package org.hibernate.tool.schema.ast
Class SqlScriptParser
- java.lang.Object
-
- antlr.Parser
-
- antlr.LLkParser
-
- org.hibernate.tool.schema.ast.GeneratedSqlScriptParser
-
- org.hibernate.tool.schema.ast.SqlScriptParser
-
- All Implemented Interfaces:
GeneratedSqlScriptParserTokenTypes
public class SqlScriptParser extends GeneratedSqlScriptParser
-
-
Field Summary
-
Fields inherited from class org.hibernate.tool.schema.ast.GeneratedSqlScriptParser
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5
-
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap
-
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 Constructor Description SqlScriptParser(java.util.function.Consumer<java.lang.String> commandConsumer, antlr.TokenStream lexer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbuildErrorMessage()static java.util.List<java.lang.String>extractCommands(java.io.Reader reader)protected voidout(antlr.Token token)Semantic action outputting a token to the current statement bufferprotected voidout(java.lang.String text)Semantic action outputting text to the current statement buffervoidreportError(antlr.RecognitionException e)voidreportError(java.lang.String message)voidreportWarning(java.lang.String message)protected voidstatementEnded()Semantic action signifying the end of a statement (delimiter recognized)protected voidstatementStarted()voidtraceIn(java.lang.String ruleName)voidtraceOut(java.lang.String ruleName)-
Methods inherited from class org.hibernate.tool.schema.ast.GeneratedSqlScriptParser
afterStatementPartNewline, blankSpacesToSkip, newLineToSkip, nonSkippedChar, nonSkippedSpace, nonSkippedTab, quotedString, script, skip, spaceToSkip, statement, statementFirstPart, statementPart, tabToSkip
-
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, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
-
-
-
Method Detail
-
extractCommands
public static java.util.List<java.lang.String> extractCommands(java.io.Reader reader)
-
out
protected void out(java.lang.String text)
Semantic action outputting text to the current statement buffer- Overrides:
outin classGeneratedSqlScriptParser
-
out
protected void out(antlr.Token token)
Semantic action outputting a token to the current statement buffer- Overrides:
outin classGeneratedSqlScriptParser
-
statementStarted
protected void statementStarted()
- Overrides:
statementStartedin classGeneratedSqlScriptParser
-
statementEnded
protected void statementEnded()
Semantic action signifying the end of a statement (delimiter recognized)- Overrides:
statementEndedin classGeneratedSqlScriptParser
-
buildErrorMessage
public java.lang.String buildErrorMessage()
-
reportError
public void reportError(antlr.RecognitionException e)
- Overrides:
reportErrorin classantlr.Parser
-
reportError
public void reportError(java.lang.String message)
- Overrides:
reportErrorin classantlr.Parser
-
reportWarning
public void reportWarning(java.lang.String message)
- Overrides:
reportWarningin classantlr.Parser
-
traceIn
public void traceIn(java.lang.String ruleName)
- Overrides:
traceInin classantlr.LLkParser
-
traceOut
public void traceOut(java.lang.String ruleName)
- Overrides:
traceOutin classantlr.LLkParser
-
-