com.hp.hpl.jena.sparql.lang
Class Parser

java.lang.Object
  extended by com.hp.hpl.jena.sparql.lang.Parser
Direct Known Subclasses:
ParserARQ, ParserSPARQL10, ParserSPARQL11

public abstract class Parser
extends Object

This class provides the root of lower level access to all the parsers. Each subclass hides the details of the per-language exception handlers and other javacc details to provide a methods that deal with setting up Query objects and using QueryException exceptions for problems.


Constructor Summary
Parser()
           
 
Method Summary
static boolean canParse(Syntax syntaxURI)
           
static Parser createParser(Syntax syntaxURI)
           
abstract  Query parse(Query query, String queryString)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parse

public abstract Query parse(Query query,
                            String queryString)
                     throws QueryParseException
Throws:
QueryParseException

canParse

public static boolean canParse(Syntax syntaxURI)

createParser

public static Parser createParser(Syntax syntaxURI)


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.