public class QueryPrologLexer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
QueryPrologLexer.Token |
static class |
QueryPrologLexer.TokenType |
Constructor and Description |
---|
QueryPrologLexer() |
Modifier and Type | Method and Description |
---|---|
static QueryPrologLexer.Token |
getRestOfQueryToken(String input)
Tokenizes the input string on prolog elements and returns the final Token.
|
static List<QueryPrologLexer.Token> |
lex(String input)
Tokenizes a syntactically legal input SPARQL query on prolog elements.
|
public static List<QueryPrologLexer.Token> lex(String input)
QueryPrologLexer.TokenType.REST_OF_QUERY
and contains the SPARQL query string minus the prolog.input
- a syntactically legal SPARQL query stringQueryPrologLexer.TokenType.REST_OF_QUERY
and to contain the SPARQL
query string minus the prolog. If the input string is not syntactically legal SPARQL, the method will
still return normally but no guarantees about the returned list are made.public static QueryPrologLexer.Token getRestOfQueryToken(String input)
QueryPrologLexer.TokenType.REST_OF_QUERY
and contain the query string minus
prolog.input
- a syntactically legal SPARQL stringCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.