/** * {@inheritDoc} */ @Override protected final void parseEncapsulatedExpression(WordParser wordParser, int whitespaceCount, boolean tolerant) { // Parse 'DISTINCT' if (wordParser.startsWithIdentifier(DISTINCT)) { distinctIdentifier = wordParser.moveForward(DISTINCT); hasSpaceAfterDistinct = wordParser.skipLeadingWhitespace() > 0; } // Parse the rest super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant); }
/** * {@inheritDoc} */ @Override protected final void parseEncapsulatedExpression(WordParser wordParser, int whitespaceCount, boolean tolerant) { // Parse 'DISTINCT' if (wordParser.startsWithIdentifier(DISTINCT)) { distinctIdentifier = wordParser.moveForward(DISTINCT); hasSpaceAfterDistinct = wordParser.skipLeadingWhitespace() > 0; } // Parse the rest super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant); }
super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant);
super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant);
/** * {@inheritDoc} */ @Override protected void parseEncapsulatedExpression(WordParser wordParser, int whitespaceCount, boolean tolerant) { // Parse the value super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant); hasSpaceAfterExpression = wordParser.skipLeadingWhitespace() > 0; // Parse 'AS' if (wordParser.startsWithIdentifier(AS)) { asIdentifier = wordParser.moveForward(AS); hasSpaceAfterAs = wordParser.skipLeadingWhitespace() > 0; } // Parse the database type if (!wordParser.isTail()) { parsingDatabaseType = true; if (tolerant) { databaseType = parse(wordParser, DatabaseTypeQueryBNF.ID, tolerant); } else { databaseType = new DatabaseType(this, wordParser.word()); databaseType.parse(wordParser, tolerant); } } }
/** * {@inheritDoc} */ @Override protected void parseEncapsulatedExpression(WordParser wordParser, int whitespaceCount, boolean tolerant) { // Parse the value super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant); hasSpaceAfterExpression = wordParser.skipLeadingWhitespace() > 0; // Parse 'AS' if (wordParser.startsWithIdentifier(AS)) { asIdentifier = wordParser.moveForward(AS); hasSpaceAfterAs = wordParser.skipLeadingWhitespace() > 0; } // Parse the database type if (!wordParser.isTail()) { parsingDatabaseType = true; if (tolerant) { databaseType = parse(wordParser, DatabaseTypeQueryBNF.ID, tolerant); } else { databaseType = new DatabaseType(this, wordParser.word()); databaseType.parse(wordParser, tolerant); } } }
super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant);
super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant);
wordParser.character() != RIGHT_PARENTHESIS) { super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant);
wordParser.character() != RIGHT_PARENTHESIS) { super.parseEncapsulatedExpression(wordParser, whitespaceCount, tolerant);