Class DB2ZParser
java.lang.Object
org.flywaydb.core.internal.parser.Parser
org.flywaydb.community.database.db2z.DB2ZParser
public class DB2ZParser
extends org.flywaydb.core.internal.parser.Parser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flywaydb.core.internal.parser.Parser
org.flywaydb.core.internal.parser.Parser.ParserSqlStatementIterator -
Field Summary
Fields inherited from class org.flywaydb.core.internal.parser.Parser
configuration, parsingContext -
Constructor Summary
ConstructorsConstructorDescriptionDB2ZParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadjustBlockDepth(org.flywaydb.core.internal.parser.ParserContext context, List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token keyword, org.flywaydb.core.internal.parser.PeekingReader reader) protected org.flywaydb.core.internal.sqlscript.ParsedSqlStatementcreateStatement(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.Recorder recorder, int statementPos, int statementLine, int statementCol, int nonCommentPartPos, int nonCommentPartLine, int nonCommentPartCol, org.flywaydb.core.internal.parser.StatementType statementType, boolean canExecuteInTransaction, org.flywaydb.core.internal.sqlscript.Delimiter delimiter, String sql, List<org.flywaydb.core.internal.parser.Token> tokens, boolean batchable) protected org.flywaydb.core.internal.parser.StatementTypedetectStatementType(String simplifiedStatement, org.flywaydb.core.internal.parser.ParserContext context, org.flywaydb.core.internal.parser.PeekingReader reader) protected org.flywaydb.core.internal.parser.TokenhandleCommentDirective(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col) protected booleanisCommentDirective(String peek) protected voidresetDelimiter(org.flywaydb.core.internal.parser.ParserContext context) Methods inherited from class org.flywaydb.core.internal.parser.Parser
adjustDelimiter, detectCanExecuteInTransaction, doTokensMatchPattern, getAdditionalParsingErrorInfo, getAlternativeIdentifierQuote, getAlternativeStringLiteralQuote, getClosingIdentifierSymbol, getDefaultDelimiter, getIdentifierQuote, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getPreviousToken, getTransactionalDetectionCutoff, getValidKeywords, handleAlternativeStringLiteral, handleDelimiter, handleKeyword, handleMultilineComment, handleStringLiteral, isAlternativeStringLiteral, isDelimiter, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, shouldAdjustBlockDepth, shouldDiscard, supportsPeekingMultipleLines, supportsReferencedSqlScripts, tokenAtIndexIs
-
Constructor Details
-
DB2ZParser
public DB2ZParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)
-
-
Method Details
-
detectStatementType
protected org.flywaydb.core.internal.parser.StatementType detectStatementType(String simplifiedStatement, org.flywaydb.core.internal.parser.ParserContext context, org.flywaydb.core.internal.parser.PeekingReader reader) - Overrides:
detectStatementTypein classorg.flywaydb.core.internal.parser.Parser
-
createStatement
protected org.flywaydb.core.internal.sqlscript.ParsedSqlStatement createStatement(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.Recorder recorder, int statementPos, int statementLine, int statementCol, int nonCommentPartPos, int nonCommentPartLine, int nonCommentPartCol, org.flywaydb.core.internal.parser.StatementType statementType, boolean canExecuteInTransaction, org.flywaydb.core.internal.sqlscript.Delimiter delimiter, String sql, List<org.flywaydb.core.internal.parser.Token> tokens, boolean batchable) throws IOException - Overrides:
createStatementin classorg.flywaydb.core.internal.parser.Parser- Throws:
IOException
-
adjustBlockDepth
protected void adjustBlockDepth(org.flywaydb.core.internal.parser.ParserContext context, List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token keyword, org.flywaydb.core.internal.parser.PeekingReader reader) throws IOException - Overrides:
adjustBlockDepthin classorg.flywaydb.core.internal.parser.Parser- Throws:
IOException
-
resetDelimiter
protected void resetDelimiter(org.flywaydb.core.internal.parser.ParserContext context) - Overrides:
resetDelimiterin classorg.flywaydb.core.internal.parser.Parser
-
isCommentDirective
- Overrides:
isCommentDirectivein classorg.flywaydb.core.internal.parser.Parser
-
handleCommentDirective
protected org.flywaydb.core.internal.parser.Token handleCommentDirective(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col) throws IOException - Overrides:
handleCommentDirectivein classorg.flywaydb.core.internal.parser.Parser- Throws:
IOException
-