@Test public void shouldParsePrefixedNameFromUnquotedString() { assertThat(parser.parseName(tokens("jcr:name"), typeSystem), is("jcr:name")); }
@Override protected String parseName( TokenStream tokens, TypeSystem typeSystem ) { String token1 = tokens.consume(); token1 = removeBracketsAndQuotes(token1, tokens.previousPosition()); if (tokens.canConsume(':')) { String token2 = tokens.consume(); token2 = removeBracketsAndQuotes(token2, tokens.previousPosition()); return token1 + ':' + token2; } return token1; }
JcrSqlQueryParser extends BasicSqlQueryParser { @Override protected String parseName( TokenStream tokens, TypeSystem typeSystem ) { String token1 = tokens.consume(); token1 = removeBracketsAndQuotes(token1, tokens.previousPosition()); if (tokens.canConsume(':')) { String token2 = tokens.consume(); token2 = removeBracketsAndQuotes(token2, tokens.previousPosition()); return token1 + ':' + token2; } return token1; } }
JcrSqlQueryParser extends BasicSqlQueryParser { @Override protected String parseName( TokenStream tokens, TypeSystem typeSystem ) { String token1 = tokens.consume(); token1 = removeBracketsAndQuotes(token1, tokens.previousPosition()); if (tokens.canConsume(':')) { String token2 = tokens.consume(); token2 = removeBracketsAndQuotes(token2, tokens.previousPosition()); return token1 + ':' + token2; } return token1; } JcrSqlQueryParser(); }
JcrSqlQueryParser extends BasicSqlQueryParser { @Override protected String parseName( TokenStream tokens, TypeSystem typeSystem ) { String token1 = tokens.consume(); token1 = removeBracketsAndQuotes(token1, tokens.previousPosition()); if (tokens.canConsume(':')) { String token2 = tokens.consume(); token2 = removeBracketsAndQuotes(token2, tokens.previousPosition()); return token1 + ':' + token2; } return token1; } JcrSqlQueryParser(); @Override String getLanguage(); }
JcrSqlQueryParser extends BasicSqlQueryParser { @Override protected String parseName( TokenStream tokens, TypeSystem typeSystem ) { String token1 = tokens.consume(); token1 = removeBracketsAndQuotes(token1, tokens.previousPosition()); if (tokens.canConsume(':')) { String token2 = tokens.consume(); token2 = removeBracketsAndQuotes(token2, tokens.previousPosition()); return token1 + ':' + token2; } return token1; } JcrSqlQueryParser(); @Override String getLanguage(); @SuppressWarnings( "deprecation" )
    static final String LANGUAGE; }