org.openrdf.sesame.query.rql.parser
Class RqlParser
java.lang.Object
org.openrdf.sesame.query.rql.parser.RqlParser
- All Implemented Interfaces:
- RqlParserConstants
- public class RqlParser
- extends Object
- implements RqlParserConstants
| Fields inherited from interface org.openrdf.sesame.query.rql.parser.RqlParserConstants |
ALPHA, AMP, AND, ASTERISK, CIRCUMFLEX, CLASS, CLASSVAR, COLON, COMMA, DEFAULT, DIGIT, DOMAIN, DOT, DOUBLEQUOTE, EOF, EQ, ESCAPE, EXISTS, EXTRA, FALSE, FORALL, FRAGMENT, FROM, GE, GT, HEX, IDENTIFIER, IN, INTEGER_LITERAL, INTERSECT, LBRACE, LBRACKET, LE, LIKE, LPAREN, LT, MINUS, NAMESPACE, NE, NOT, NULL, OR, PROPERTY, PROPERTYVAR, QUOTE, QUOTED_CHAR, QUOTED_STRING, RANGE, RBRACE, RBRACKET, REAL_LITERAL, RESERVED, RPAREN, SAFE, SCHEME, SELECT, SUBCLASSOF, SUBPROPERTYOF, SUPERCLASSOF, SUPERPROPERTYOF, tokenImage, TRUE, TYPEOF, UCHAR, UNION, UNRESERVED, URI, USING, WHERE |
token_source
public RqlParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
RqlParser
public RqlParser(InputStream stream)
RqlParser
public RqlParser(Reader stream)
RqlParser
public RqlParser(RqlParserTokenManager tm)
getSharedVar
public Var getSharedVar(String name)
getVarList
public List getVarList()
clearVars
public void clearVars()
getAnonymousVarName
public String getAnonymousVarName()
addNamespace
public void addNamespace(String prefix,
String namespace)
getNamespace
public String getNamespace(String prefix)
parse
public final Query parse()
throws ParseException
- Throws:
ParseException
namespace
public final void namespace()
throws ParseException
- Throws:
ParseException
query
public final Query query()
throws ParseException
- Throws:
ParseException
var
public final Var var()
throws ParseException
- Throws:
ParseException
datavar
public final DataVar datavar()
throws ParseException
- Throws:
ParseException
classvar
public final ClassVar classvar()
throws ParseException
- Throws:
ParseException
propertyvar
public final PropertyVar propertyvar()
throws ParseException
- Throws:
ParseException
uri
public final URI uri()
throws ParseException
- Throws:
ParseException
sfw_query
public final ResourceQuery sfw_query()
throws ParseException
- Throws:
ParseException
projslist
public final void projslist(List projsList)
throws ParseException
- Throws:
ParseException
projs_elem
public final ResourceQuery projs_elem()
throws ParseException
- Throws:
ParseException
null_value
public final DataVar null_value()
throws ParseException
- Throws:
ParseException
rangeslist
public final void rangeslist(List selectors)
throws ParseException
- Throws:
ParseException
ranges_elem
public final void ranges_elem(List selectors)
throws ParseException
- Throws:
ParseException
class_or_property_selector
public final void class_or_property_selector(List selectors)
throws ParseException
- Throws:
ParseException
pathexpr
public final void pathexpr(List selectors)
throws ParseException
- Throws:
ParseException
first_pathelem
public final org.openrdf.sesame.query.rql.parser.RqlParser.FromTo first_pathelem(List selectors)
throws ParseException
- Throws:
ParseException
joined_pathelem
public final org.openrdf.sesame.query.rql.parser.RqlParser.FromTo joined_pathelem(List selectors,
org.openrdf.sesame.query.rql.parser.RqlParser.FromTo sourceFromTo)
throws ParseException
- Throws:
ParseException
from_to
public final org.openrdf.sesame.query.rql.parser.RqlParser.FromTo from_to(List selectors)
throws ParseException
- Throws:
ParseException
schema_part
public final ClassQuery schema_part()
throws ParseException
- Throws:
ParseException
ext_data_query
public final DataQuery ext_data_query()
throws ParseException
- Throws:
ParseException
data_query
public final DataQuery data_query()
throws ParseException
- Throws:
ParseException
proper_instances
public final DataQuery proper_instances()
throws ParseException
- Throws:
ParseException
ext_class_query
public final ClassQuery ext_class_query()
throws ParseException
- Throws:
ParseException
class_query
public final ClassQuery class_query()
throws ParseException
- Throws:
ParseException
typeOf
public final ClassQuery typeOf()
throws ParseException
- Throws:
ParseException
typeOf_arg
public final ResourceQuery typeOf_arg()
throws ParseException
- Throws:
ParseException
subClassOf
public final ClassQuery subClassOf()
throws ParseException
- Throws:
ParseException
superClassOf
public final ClassQuery superClassOf()
throws ParseException
- Throws:
ParseException
rdfs_class
public final RdfsClass rdfs_class()
throws ParseException
- Throws:
ParseException
domain
public final ClassQuery domain()
throws ParseException
- Throws:
ParseException
range
public final ClassQuery range()
throws ParseException
- Throws:
ParseException
ext_property_query
public final PropertyQuery ext_property_query()
throws ParseException
- Throws:
ParseException
property_query
public final PropertyQuery property_query()
throws ParseException
- Throws:
ParseException
subPropertyOf
public final PropertyQuery subPropertyOf()
throws ParseException
- Throws:
ParseException
superPropertyOf
public final PropertyQuery superPropertyOf()
throws ParseException
- Throws:
ParseException
rdf_property
public final RdfProperty rdf_property()
throws ParseException
- Throws:
ParseException
resource_query
public final ResourceQuery resource_query()
throws ParseException
- Throws:
ParseException
array_selection
public final ResourceQuery array_selection(ResourceQuery subject)
throws ParseException
- Throws:
ParseException
set_query
public final SetQuery set_query()
throws ParseException
- Throws:
ParseException
boolean_query
public final BooleanQuery boolean_query()
throws ParseException
- Throws:
ParseException
or_expression
public final BooleanQuery or_expression()
throws ParseException
- Throws:
ParseException
and_expression
public final BooleanQuery and_expression()
throws ParseException
- Throws:
ParseException
and_part
public final BooleanQuery and_part()
throws ParseException
- Throws:
ParseException
compare_to_part
public final BooleanQuery compare_to_part(ResourceQuery arg1)
throws ParseException
- Throws:
ParseException
comp_op
public final int comp_op()
throws ParseException
- Throws:
ParseException
constant
public final Constant constant()
throws ParseException
- Throws:
ParseException
quoted_string
public final StringConstant quoted_string()
throws ParseException
- Throws:
ParseException
quoted_char
public final StringConstant quoted_char()
throws ParseException
- Throws:
ParseException
integer_literal
public final IntegerConstant integer_literal()
throws ParseException
- Throws:
ParseException
real_literal
public final RealConstant real_literal()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(RqlParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.