org.openrdf.sesame.query.rql.parser
Class RqlParser

java.lang.Object
  extended byorg.openrdf.sesame.query.rql.parser.RqlParser
All Implemented Interfaces:
RqlParserConstants

public class RqlParser
extends Object
implements RqlParserConstants


Field Summary
 Token jj_nt
           
 Token token
           
 RqlParserTokenManager token_source
           
 
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
 
Constructor Summary
RqlParser(InputStream stream)
           
RqlParser(Reader stream)
           
RqlParser(RqlParserTokenManager tm)
           
 
Method Summary
 void addNamespace(String prefix, String namespace)
           
 BooleanQuery and_expression()
           
 BooleanQuery and_part()
           
 ResourceQuery array_selection(ResourceQuery subject)
           
 BooleanQuery boolean_query()
           
 void class_or_property_selector(List selectors)
           
 ClassQuery class_query()
           
 ClassVar classvar()
           
 void clearVars()
           
 int comp_op()
           
 BooleanQuery compare_to_part(ResourceQuery arg1)
           
 Constant constant()
           
 DataQuery data_query()
           
 DataVar datavar()
           
 void disable_tracing()
           
 ClassQuery domain()
           
 void enable_tracing()
           
 ClassQuery ext_class_query()
           
 DataQuery ext_data_query()
           
 PropertyQuery ext_property_query()
           
 org.openrdf.sesame.query.rql.parser.RqlParser.FromTo first_pathelem(List selectors)
           
 org.openrdf.sesame.query.rql.parser.RqlParser.FromTo from_to(List selectors)
           
 ParseException generateParseException()
           
 String getAnonymousVarName()
           
 String getNamespace(String prefix)
           
 Token getNextToken()
           
 Var getSharedVar(String name)
           
 Token getToken(int index)
           
 List getVarList()
           
 IntegerConstant integer_literal()
           
 org.openrdf.sesame.query.rql.parser.RqlParser.FromTo joined_pathelem(List selectors, org.openrdf.sesame.query.rql.parser.RqlParser.FromTo sourceFromTo)
           
 void namespace()
           
 DataVar null_value()
           
 BooleanQuery or_expression()
           
 Query parse()
           
 void pathexpr(List selectors)
           
 ResourceQuery projs_elem()
           
 void projslist(List projsList)
           
 DataQuery proper_instances()
           
 PropertyQuery property_query()
           
 PropertyVar propertyvar()
           
 Query query()
           
 StringConstant quoted_char()
           
 StringConstant quoted_string()
           
 ClassQuery range()
           
 void ranges_elem(List selectors)
           
 void rangeslist(List selectors)
           
 RdfProperty rdf_property()
           
 RdfsClass rdfs_class()
           
 RealConstant real_literal()
           
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 void ReInit(RqlParserTokenManager tm)
           
 ResourceQuery resource_query()
           
 ClassQuery schema_part()
           
 SetQuery set_query()
           
 ResourceQuery sfw_query()
           
 ClassQuery subClassOf()
           
 PropertyQuery subPropertyOf()
           
 ClassQuery superClassOf()
           
 PropertyQuery superPropertyOf()
           
 ResourceQuery typeOf_arg()
           
 ClassQuery typeOf()
           
 URI uri()
           
 Var var()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public RqlParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

RqlParser

public RqlParser(InputStream stream)

RqlParser

public RqlParser(Reader stream)

RqlParser

public RqlParser(RqlParserTokenManager tm)
Method Detail

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.