Class H2Parser
- java.lang.Object
-
- migratedb.v1.core.internal.parser.BaseParser
-
- migratedb.v1.core.internal.database.h2.H2Parser
-
- All Implemented Interfaces:
Parser
public class H2Parser extends BaseParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class migratedb.v1.core.internal.parser.BaseParser
BaseParser.ParserSqlStatementIterator
-
-
Field Summary
-
Fields inherited from class migratedb.v1.core.internal.parser.BaseParser
LOG
-
-
Constructor Summary
Constructors Constructor Description H2Parser(Configuration configuration, ParsingContext parsingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected chargetAlternativeIdentifierQuote()protected chargetAlternativeStringLiteralQuote()protected TokenhandleAlternativeStringLiteral(PeekingReader reader, ParserContext context, int pos, int line, int col)-
Methods inherited from class migratedb.v1.core.internal.parser.BaseParser
adjustBlockDepth, adjustDelimiter, closeAndAddSuppressed, createStatement, detectCanExecuteInTransaction, detectStatementType, doTokensMatchPattern, getClosingIdentifierSymbol, getConfiguration, getDefaultDelimiter, getIdentifierQuote, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getParsingContext, getPreviousToken, getTransactionalDetectionCutoff, getValidKeywords, handleCommentDirective, handleDelimiter, handleKeyword, handleStringLiteral, isAlternativeStringLiteral, isCommentDirective, isDelimiter, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, resetDelimiter, shouldAdjustBlockDepth, shouldDiscard, supportsPeekingMultipleLines, tokenAtIndexIs
-
-
-
-
Constructor Detail
-
H2Parser
public H2Parser(Configuration configuration, ParsingContext parsingContext)
-
-
Method Detail
-
getAlternativeIdentifierQuote
protected char getAlternativeIdentifierQuote()
- Overrides:
getAlternativeIdentifierQuotein classBaseParser
-
getAlternativeStringLiteralQuote
protected char getAlternativeStringLiteralQuote()
- Overrides:
getAlternativeStringLiteralQuotein classBaseParser
-
handleAlternativeStringLiteral
protected Token handleAlternativeStringLiteral(PeekingReader reader, ParserContext context, int pos, int line, int col) throws IOException
- Overrides:
handleAlternativeStringLiteralin classBaseParser- Throws:
IOException
-
-