Class HSQLDBParser
- java.lang.Object
-
- migratedb.v1.core.internal.parser.BaseParser
-
- migratedb.v1.core.internal.database.hsqldb.HSQLDBParser
-
- All Implemented Interfaces:
Parser
public class HSQLDBParser 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 HSQLDBParser(Configuration configuration, ParsingContext parsingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader)protected intgetLastKeywordIndex(List<Token> tokens, int endIndex)protected Set<String>getValidKeywords()protected booleanshouldAdjustBlockDepth(ParserContext context, List<Token> tokens, Token token)-
Methods inherited from class migratedb.v1.core.internal.parser.BaseParser
adjustDelimiter, closeAndAddSuppressed, createStatement, detectCanExecuteInTransaction, detectStatementType, doTokensMatchPattern, getAlternativeIdentifierQuote, getAlternativeStringLiteralQuote, getClosingIdentifierSymbol, getConfiguration, getDefaultDelimiter, getIdentifierQuote, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getParsingContext, getPreviousToken, getTransactionalDetectionCutoff, handleAlternativeStringLiteral, handleCommentDirective, handleDelimiter, handleKeyword, handleStringLiteral, isAlternativeStringLiteral, isCommentDirective, isDelimiter, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, resetDelimiter, shouldDiscard, supportsPeekingMultipleLines, tokenAtIndexIs
-
-
-
-
Constructor Detail
-
HSQLDBParser
public HSQLDBParser(Configuration configuration, ParsingContext parsingContext)
-
-
Method Detail
-
getValidKeywords
protected Set<String> getValidKeywords()
- Overrides:
getValidKeywordsin classBaseParser
-
getLastKeywordIndex
protected int getLastKeywordIndex(List<Token> tokens, int endIndex)
- Overrides:
getLastKeywordIndexin classBaseParser
-
shouldAdjustBlockDepth
protected boolean shouldAdjustBlockDepth(ParserContext context, List<Token> tokens, Token token)
- Overrides:
shouldAdjustBlockDepthin classBaseParser
-
adjustBlockDepth
protected void adjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader) throws IOException
- Overrides:
adjustBlockDepthin classBaseParser- Throws:
IOException
-
-