org.jrdf.sparql.analysis
Class SparqlAnalyserImpl

java.lang.Object
  extended by org.jrdf.sparql.parser.analysis.AnalysisAdapter
      extended by org.jrdf.sparql.parser.analysis.DepthFirstAdapter
          extended by org.jrdf.sparql.analysis.SparqlAnalyserImpl
All Implemented Interfaces:
SparqlAnalyser, org.jrdf.sparql.parser.analysis.Analysis, org.jrdf.sparql.parser.node.Switch

public final class SparqlAnalyserImpl
extends org.jrdf.sparql.parser.analysis.DepthFirstAdapter
implements SparqlAnalyser

Default implementation of SparqlAnalyser.

Version:
$Revision: 982 $
Author:
Tom Adams

Constructor Summary
SparqlAnalyserImpl(TripleBuilder tripleBuilder, Graph graph, GraphRelationFactory graphRelationFactory)
           
 
Method Summary
 Query getQuery()
          Returns the query processed by this analyser.
 void inStart(org.jrdf.sparql.parser.node.Start node)
           
 
Methods inherited from class org.jrdf.sparql.parser.analysis.DepthFirstAdapter
caseABlockOfTriples, caseABlockOfTriplesFilteredBasicGraphPattern, caseADatatype, caseADbQuotedEscapedDbQuotedStrand, caseADbQuotedLiteralLiteral, caseADbQuotedUnescapedDbQuotedStrand, caseAFilteredBasicGraphPatternGraphPattern, caseAGroupGraphPattern, caseAGroupOrUnionGraphPattern, caseAGroupOrUnionGraphPatternGraphPatternNotTriples, caseALiteralObjectTripleElement, caseAMoreTriples, caseAOperationPattern, caseAOptionalGraphPattern, caseAOptionalGraphPatternGraphPatternNotTriples, caseAPrefixdeclProlog, caseAPrefixPrefixdecl, caseAQnameObjectTripleElement, caseAQnameResourceTripleElement, caseAQueryStart, caseAQuotedEscapedQuotedStrand, caseAQuotedLiteralLiteral, caseAQuotedUnescapedQuotedStrand, caseAResourceObjectTripleElement, caseAResourceResourceTripleElement, caseATriple, caseAUnionGraphPattern, caseAVariable, caseAVariableListSelectClause, caseAVariableObjectTripleElement, caseAVariableResourceTripleElement, caseAWhereClause, caseAWildcardSelectClause, caseStart, defaultIn, defaultOut, inABlockOfTriples, inABlockOfTriplesFilteredBasicGraphPattern, inADatatype, inADbQuotedEscapedDbQuotedStrand, inADbQuotedLiteralLiteral, inADbQuotedUnescapedDbQuotedStrand, inAFilteredBasicGraphPatternGraphPattern, inAGroupGraphPattern, inAGroupOrUnionGraphPattern, inAGroupOrUnionGraphPatternGraphPatternNotTriples, inALiteralObjectTripleElement, inAMoreTriples, inAOperationPattern, inAOptionalGraphPattern, inAOptionalGraphPatternGraphPatternNotTriples, inAPrefixdeclProlog, inAPrefixPrefixdecl, inAQnameObjectTripleElement, inAQnameResourceTripleElement, inAQueryStart, inAQuotedEscapedQuotedStrand, inAQuotedLiteralLiteral, inAQuotedUnescapedQuotedStrand, inAResourceObjectTripleElement, inAResourceResourceTripleElement, inATriple, inAUnionGraphPattern, inAVariable, inAVariableListSelectClause, inAVariableObjectTripleElement, inAVariableResourceTripleElement, inAWhereClause, inAWildcardSelectClause, outABlockOfTriples, outABlockOfTriplesFilteredBasicGraphPattern, outADatatype, outADbQuotedEscapedDbQuotedStrand, outADbQuotedLiteralLiteral, outADbQuotedUnescapedDbQuotedStrand, outAFilteredBasicGraphPatternGraphPattern, outAGroupGraphPattern, outAGroupOrUnionGraphPattern, outAGroupOrUnionGraphPatternGraphPatternNotTriples, outALiteralObjectTripleElement, outAMoreTriples, outAOperationPattern, outAOptionalGraphPattern, outAOptionalGraphPatternGraphPatternNotTriples, outAPrefixdeclProlog, outAPrefixPrefixdecl, outAQnameObjectTripleElement, outAQnameResourceTripleElement, outAQueryStart, outAQuotedEscapedQuotedStrand, outAQuotedLiteralLiteral, outAQuotedUnescapedQuotedStrand, outAResourceObjectTripleElement, outAResourceResourceTripleElement, outATriple, outAUnionGraphPattern, outAVariable, outAVariableListSelectClause, outAVariableObjectTripleElement, outAVariableResourceTripleElement, outAWhereClause, outAWildcardSelectClause, outStart
 
Methods inherited from class org.jrdf.sparql.parser.analysis.AnalysisAdapter
caseEOF, caseTAsterisk, caseTBlank, caseTColon, caseTComment, caseTDatatypeprefix, caseTDbqescape, caseTDbqescapedtext, caseTDbqtext, caseTDbquote, caseTEndcomment, caseTEndurl, caseTFloat, caseTHash, caseTIdentifier, caseTLpar, caseTNumber, caseTOptional, caseTPeriod, caseTPrefix, caseTQescape, caseTQescapedtext, caseTQtext, caseTQuote, caseTResource, caseTRpar, caseTSelect, caseTTerminator, caseTUnion, caseTUrl, caseTVariableprefix, caseTWhere, defaultCase, getIn, getOut, setIn, setOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jrdf.sparql.parser.analysis.Analysis
caseABlockOfTriples, caseABlockOfTriplesFilteredBasicGraphPattern, caseADatatype, caseADbQuotedEscapedDbQuotedStrand, caseADbQuotedLiteralLiteral, caseADbQuotedUnescapedDbQuotedStrand, caseAFilteredBasicGraphPatternGraphPattern, caseAGroupGraphPattern, caseAGroupOrUnionGraphPattern, caseAGroupOrUnionGraphPatternGraphPatternNotTriples, caseALiteralObjectTripleElement, caseAMoreTriples, caseAOperationPattern, caseAOptionalGraphPattern, caseAOptionalGraphPatternGraphPatternNotTriples, caseAPrefixdeclProlog, caseAPrefixPrefixdecl, caseAQnameObjectTripleElement, caseAQnameResourceTripleElement, caseAQueryStart, caseAQuotedEscapedQuotedStrand, caseAQuotedLiteralLiteral, caseAQuotedUnescapedQuotedStrand, caseAResourceObjectTripleElement, caseAResourceResourceTripleElement, caseATriple, caseAUnionGraphPattern, caseAVariable, caseAVariableListSelectClause, caseAVariableObjectTripleElement, caseAVariableResourceTripleElement, caseAWhereClause, caseAWildcardSelectClause, caseEOF, caseStart, caseTAsterisk, caseTBlank, caseTColon, caseTComment, caseTDatatypeprefix, caseTDbqescape, caseTDbqescapedtext, caseTDbqtext, caseTDbquote, caseTEndcomment, caseTEndurl, caseTFloat, caseTHash, caseTIdentifier, caseTLpar, caseTNumber, caseTOptional, caseTPeriod, caseTPrefix, caseTQescape, caseTQescapedtext, caseTQtext, caseTQuote, caseTResource, caseTRpar, caseTSelect, caseTTerminator, caseTUnion, caseTUrl, caseTVariableprefix, caseTWhere, getIn, getOut, setIn, setOut
 

Constructor Detail

SparqlAnalyserImpl

public SparqlAnalyserImpl(TripleBuilder tripleBuilder,
                          Graph graph,
                          GraphRelationFactory graphRelationFactory)
Method Detail

getQuery

public Query getQuery()
               throws org.jrdf.sparql.parser.parser.ParserException
Returns the query processed by this analyser.

Specified by:
getQuery in interface SparqlAnalyser
Returns:
The query processed by this analyser, or NoQuery if no query has been processed.
Throws:
org.jrdf.sparql.parser.parser.ParserException - if the SPARQL parser gets an exception when parsing.

inStart

public void inStart(org.jrdf.sparql.parser.node.Start node)
Overrides:
inStart in class org.jrdf.sparql.parser.analysis.DepthFirstAdapter