Package org.flywaydb.database.db2
Class DB2Parser
java.lang.Object
org.flywaydb.core.internal.parser.Parser
org.flywaydb.database.db2.DB2Parser
public class DB2Parser
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
ConstructorsConstructorDescriptionDB2Parser
(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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) protected boolean
isCommentDirective
(String peek) protected void
resetDelimiter
(org.flywaydb.core.internal.parser.ParserContext context) Methods inherited from class org.flywaydb.core.internal.parser.Parser
adjustDelimiter, createStatement, detectCanExecuteInTransaction, detectStatementType, 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
-
DB2Parser
public DB2Parser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)
-
-
Method Details
-
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:
adjustBlockDepth
in classorg.flywaydb.core.internal.parser.Parser
- Throws:
IOException
-
resetDelimiter
protected void resetDelimiter(org.flywaydb.core.internal.parser.ParserContext context) - Overrides:
resetDelimiter
in classorg.flywaydb.core.internal.parser.Parser
-
isCommentDirective
- Overrides:
isCommentDirective
in 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:
handleCommentDirective
in classorg.flywaydb.core.internal.parser.Parser
- Throws:
IOException
-