Top Fields Constructors Methods
org.hibernate.tool.schema.ast

public Class SqlScriptParser

extends GeneratedSqlScriptParser
Class Inheritance
Imports
java.io.Reader, java.util.ArrayList, .LinkedList, .List, java.util.function.Consumer, org.hibernate.hql.internal.ast.util.ASTUtil, org.hibernate.internal.util.StringHelper, antlr.RecognitionException, .Token, .TokenStream

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Consumer<String>
private StringBuilder
private static final int
private final List<String>
private static String[]
private int
Inherited from org.hibernate.tool.schema.ast.GeneratedSqlScriptParser:
_tokenNames_tokenSet_0_tokenSet_1_tokenSet_2_tokenSet_3_tokenSet_4_tokenSet_5

Constructor Summary

AccessConstructor and Description
public
SqlScriptParser(Consumer<String> commandConsumer, TokenStream lexer)

Method Summary

Modifier and TypeMethod and Description
public String
public static List<String>
private void
protected void
out(String text)

Overrides org.hibernate.tool.schema.ast.GeneratedSqlScriptParser.out.

Semantic action outputting text to the current statement buffer
protected void
out(Token token)

Overrides org.hibernate.tool.schema.ast.GeneratedSqlScriptParser.out.

Semantic action outputting a token to the current statement buffer
private void
public void
reportError(RecognitionException e)

Overrides antlr.Parser.reportError.

Parser error-reporting function can be overridden in subclass
public void
reportError(String message)

Overrides antlr.Parser.reportError.

Parser error-reporting function can be overridden in subclass
public void
reportWarning(String message)

Overrides antlr.Parser.reportWarning.

Parser warning-reporting function can be overridden in subclass
protected void
statementEnded()

Overrides org.hibernate.tool.schema.ast.GeneratedSqlScriptParser.statementEnded.

Semantic action signifying the end of a statement (delimiter recognized)
protected void
public void
public void
Inherited from org.hibernate.tool.schema.ast.GeneratedSqlScriptParser:
afterStatementPartNewlineblankSpacesToSkipnewLineToSkipnonSkippedCharnonSkippedSpacenonSkippedTabquotedStringscriptskipspaceToSkipstatementstatementFirstPartstatementParttabToSkip

Field Detail

commandConsumerback to summary
private final Consumer<String> commandConsumer
currentStatementBufferback to summary
private StringBuilder currentStatementBuffer
depthIndentback to summary
private static final int depthIndent
errorListback to summary
private final List<String> errorList
TOKEN_NAMESback to summary
private static String[] TOKEN_NAMES
traceDepthback to summary
private int traceDepth

Hides antlr.Parser.traceDepth.

Constructor Detail

SqlScriptParserback to summary
public SqlScriptParser(Consumer<String> commandConsumer, TokenStream lexer)

Method Detail

buildErrorMessageback to summary
public String buildErrorMessage()
extractCommandsback to summary
public static List<String> extractCommands(Reader reader)
failIfAnyErrorsback to summary
private void failIfAnyErrors()
outback to summary
protected void out(String text)

Overrides org.hibernate.tool.schema.ast.GeneratedSqlScriptParser.out.

Semantic action outputting text to the current statement buffer

Annotations
@Override
outback to summary
protected void out(Token token)

Overrides org.hibernate.tool.schema.ast.GeneratedSqlScriptParser.out.

Semantic action outputting a token to the current statement buffer

Annotations
@Override
parseScriptback to summary
private void parseScript()
reportErrorback to summary
public void reportError(RecognitionException e)

Overrides antlr.Parser.reportError.

Doc from antlr.Parser.reportError.

Parser error-reporting function can be overridden in subclass

Annotations
@Override
reportErrorback to summary
public void reportError(String message)

Overrides antlr.Parser.reportError.

Doc from antlr.Parser.reportError.

Parser error-reporting function can be overridden in subclass

Annotations
@Override
reportWarningback to summary
public void reportWarning(String message)

Overrides antlr.Parser.reportWarning.

Doc from antlr.Parser.reportWarning.

Parser warning-reporting function can be overridden in subclass

Annotations
@Override
statementEndedback to summary
protected void statementEnded()

Overrides org.hibernate.tool.schema.ast.GeneratedSqlScriptParser.statementEnded.

Semantic action signifying the end of a statement (delimiter recognized)

Annotations
@Override
statementStartedback to summary
protected void statementStarted()

Overrides org.hibernate.tool.schema.ast.GeneratedSqlScriptParser.statementStarted.

Annotations
@Override
traceInback to summary
public void traceIn(String ruleName)

Overrides antlr.LLkParser.traceIn.

Annotations
@Override
traceOutback to summary
public void traceOut(String ruleName)

Overrides antlr.LLkParser.traceOut.

Annotations
@Override