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, Analysis, Switch

public final class SparqlAnalyserImpl
extends DepthFirstAdapter
implements SparqlAnalyser

Default implementation of SparqlAnalyser.

Version:
$Revision: 982 $
Author:
Tom Adams

Constructor Summary
SparqlAnalyserImpl(TripleBuilder newTripleBuilder, Graph newGraph, GraphRelationFactory newGraphRelationFactory)
           
 
Method Summary
 Query getQuery()
          Returns the query processed by this analyser.
 void inStart(Start node)
           
 
Methods inherited from class org.jrdf.sparql.parser.analysis.DepthFirstAdapter
caseAAdditiveExpression, caseAAskClause, caseAAskQueryStart, caseABlockOfTriples, caseABlockOfTriplesFilteredBasicGraphPattern, caseABooleanLiteralLiteral, caseABooleanLiteralPrimaryExpression, caseABooleanNotUnaryExpression, caseABoundBuiltincall, caseABracketedExpression, caseABracketedExpressionConstraint, caseABracketedExpressionPrimaryExpression, caseABracketedVar, caseABuiltincallConstraint, caseABuiltincallPrimaryExpression, caseAConditionalAndExpression, caseAConditionalOrExpression, caseADatatypeBuiltincall, caseADbQuotedEscapedDbQuotedStrand, caseADbQuotedLiteralLiteralValue, caseADbQuotedUnescapedDbQuotedStrand, caseADecimalUnsignedNumericLiteral, caseADefaultSourceSelectorDatasetClause, caseADoubleUnsignedNumericLiteral, caseAEMoreNumericExpression, caseAFalseBooleanLiteral, caseAFilteredBasicGraphPatternGraphPattern, caseAFilterPattern, caseAFilterPatternGraphPatternOrFilter, caseAGraphPatternNotTriplesGraphPatternOrFilter, caseAGraphPatternOrFilterGraphPatternOperationPattern, caseAGroupGraphPattern, caseAGroupOrUnionGraphPattern, caseAGroupOrUnionGraphPatternGraphPatternNotTriples, caseAGteMoreNumericExpression, caseAGtMoreNumericExpression, caseAIntegerUnsignedNumericLiteral, caseAIriRefIriRefOrPrefixedName, caseAIsblankBuiltincall, caseAIsiriBuiltincall, caseAIsliteralBuiltincall, caseAIsuriBuiltincall, caseALangBuiltincall, caseALangLiteralRdfLiteral, caseALiteralObjectTripleElement, caseALteMoreNumericExpression, caseALtMoreNumericExpression, caseAMoreConditionalAndExpression, caseAMoreTriples, caseAMoreValueLogical, caseAMultiplicativeExpression, caseANamedSourceSelectorDatasetClause, caseANegativeNumericLiteralNumericLiteral, caseANeMoreNumericExpression, caseANumericExpression, caseANumericLiteralLiteral, caseANumericLiteralPrimaryExpression, caseAOptionalGraphPattern, caseAOptionalGraphPatternGraphPatternNotTriples, caseAPositiveNumericLiteralNumericLiteral, caseAPrefixdeclProlog, caseAPrefixedNameIriRefOrPrefixedName, caseAPrefixPrefixdecl, caseAPrimaryExpressionUnaryExpression, caseAQnameDatatypeDatatype, caseAQnameObjectTripleElement, caseAQnameQnameElement, caseAQnameResourceTripleElement, caseAQuotedEscapedQuotedStrand, caseAQuotedLiteralLiteralValue, caseAQuotedUnescapedQuotedStrand, caseARdfLiteralLiteral, caseARdfLiteralPrimaryExpression, caseARelationalExpression, caseAResourceDatatypeDatatype, caseAResourceObjectTripleElement, caseAResourceOrQnamePrimaryExpression, caseAResourceResourceTripleElement, caseASelectQueryStart, caseASourceSelector, caseAStrBuiltincall, caseATriple, caseATrueBooleanLiteral, caseATypedLiteralRdfLiteral, caseAUnionGraphPattern, caseAUnsignedNumericLiteralNumericLiteral, caseAUntypedLiteralRdfLiteral, caseAValueLogical, caseAVariable, caseAVariableListSelectClause, caseAVariableObjectTripleElement, caseAVariablePrimaryExpression, caseAVariableResourceTripleElement, caseAWhereClause, caseAWildcardSelectClause, caseStart, defaultIn, defaultOut, inAAdditiveExpression, inAAskClause, inAAskQueryStart, inABlockOfTriples, inABlockOfTriplesFilteredBasicGraphPattern, inABooleanLiteralLiteral, inABooleanLiteralPrimaryExpression, inABooleanNotUnaryExpression, inABoundBuiltincall, inABracketedExpression, inABracketedExpressionConstraint, inABracketedExpressionPrimaryExpression, inABracketedVar, inABuiltincallConstraint, inABuiltincallPrimaryExpression, inAConditionalAndExpression, inAConditionalOrExpression, inADatatypeBuiltincall, inADbQuotedEscapedDbQuotedStrand, inADbQuotedLiteralLiteralValue, inADbQuotedUnescapedDbQuotedStrand, inADecimalUnsignedNumericLiteral, inADefaultSourceSelectorDatasetClause, inADoubleUnsignedNumericLiteral, inAEMoreNumericExpression, inAFalseBooleanLiteral, inAFilteredBasicGraphPatternGraphPattern, inAFilterPattern, inAFilterPatternGraphPatternOrFilter, inAGraphPatternNotTriplesGraphPatternOrFilter, inAGraphPatternOrFilterGraphPatternOperationPattern, inAGroupGraphPattern, inAGroupOrUnionGraphPattern, inAGroupOrUnionGraphPatternGraphPatternNotTriples, inAGteMoreNumericExpression, inAGtMoreNumericExpression, inAIntegerUnsignedNumericLiteral, inAIriRefIriRefOrPrefixedName, inAIsblankBuiltincall, inAIsiriBuiltincall, inAIsliteralBuiltincall, inAIsuriBuiltincall, inALangBuiltincall, inALangLiteralRdfLiteral, inALiteralObjectTripleElement, inALteMoreNumericExpression, inALtMoreNumericExpression, inAMoreConditionalAndExpression, inAMoreTriples, inAMoreValueLogical, inAMultiplicativeExpression, inANamedSourceSelectorDatasetClause, inANegativeNumericLiteralNumericLiteral, inANeMoreNumericExpression, inANumericExpression, inANumericLiteralLiteral, inANumericLiteralPrimaryExpression, inAOptionalGraphPattern, inAOptionalGraphPatternGraphPatternNotTriples, inAPositiveNumericLiteralNumericLiteral, inAPrefixdeclProlog, inAPrefixedNameIriRefOrPrefixedName, inAPrefixPrefixdecl, inAPrimaryExpressionUnaryExpression, inAQnameDatatypeDatatype, inAQnameObjectTripleElement, inAQnameQnameElement, inAQnameResourceTripleElement, inAQuotedEscapedQuotedStrand, inAQuotedLiteralLiteralValue, inAQuotedUnescapedQuotedStrand, inARdfLiteralLiteral, inARdfLiteralPrimaryExpression, inARelationalExpression, inAResourceDatatypeDatatype, inAResourceObjectTripleElement, inAResourceOrQnamePrimaryExpression, inAResourceResourceTripleElement, inASelectQueryStart, inASourceSelector, inAStrBuiltincall, inATriple, inATrueBooleanLiteral, inATypedLiteralRdfLiteral, inAUnionGraphPattern, inAUnsignedNumericLiteralNumericLiteral, inAUntypedLiteralRdfLiteral, inAValueLogical, inAVariable, inAVariableListSelectClause, inAVariableObjectTripleElement, inAVariablePrimaryExpression, inAVariableResourceTripleElement, inAWhereClause, inAWildcardSelectClause, outAAdditiveExpression, outAAskClause, outAAskQueryStart, outABlockOfTriples, outABlockOfTriplesFilteredBasicGraphPattern, outABooleanLiteralLiteral, outABooleanLiteralPrimaryExpression, outABooleanNotUnaryExpression, outABoundBuiltincall, outABracketedExpression, outABracketedExpressionConstraint, outABracketedExpressionPrimaryExpression, outABracketedVar, outABuiltincallConstraint, outABuiltincallPrimaryExpression, outAConditionalAndExpression, outAConditionalOrExpression, outADatatypeBuiltincall, outADbQuotedEscapedDbQuotedStrand, outADbQuotedLiteralLiteralValue, outADbQuotedUnescapedDbQuotedStrand, outADecimalUnsignedNumericLiteral, outADefaultSourceSelectorDatasetClause, outADoubleUnsignedNumericLiteral, outAEMoreNumericExpression, outAFalseBooleanLiteral, outAFilteredBasicGraphPatternGraphPattern, outAFilterPattern, outAFilterPatternGraphPatternOrFilter, outAGraphPatternNotTriplesGraphPatternOrFilter, outAGraphPatternOrFilterGraphPatternOperationPattern, outAGroupGraphPattern, outAGroupOrUnionGraphPattern, outAGroupOrUnionGraphPatternGraphPatternNotTriples, outAGteMoreNumericExpression, outAGtMoreNumericExpression, outAIntegerUnsignedNumericLiteral, outAIriRefIriRefOrPrefixedName, outAIsblankBuiltincall, outAIsiriBuiltincall, outAIsliteralBuiltincall, outAIsuriBuiltincall, outALangBuiltincall, outALangLiteralRdfLiteral, outALiteralObjectTripleElement, outALteMoreNumericExpression, outALtMoreNumericExpression, outAMoreConditionalAndExpression, outAMoreTriples, outAMoreValueLogical, outAMultiplicativeExpression, outANamedSourceSelectorDatasetClause, outANegativeNumericLiteralNumericLiteral, outANeMoreNumericExpression, outANumericExpression, outANumericLiteralLiteral, outANumericLiteralPrimaryExpression, outAOptionalGraphPattern, outAOptionalGraphPatternGraphPatternNotTriples, outAPositiveNumericLiteralNumericLiteral, outAPrefixdeclProlog, outAPrefixedNameIriRefOrPrefixedName, outAPrefixPrefixdecl, outAPrimaryExpressionUnaryExpression, outAQnameDatatypeDatatype, outAQnameObjectTripleElement, outAQnameQnameElement, outAQnameResourceTripleElement, outAQuotedEscapedQuotedStrand, outAQuotedLiteralLiteralValue, outAQuotedUnescapedQuotedStrand, outARdfLiteralLiteral, outARdfLiteralPrimaryExpression, outARelationalExpression, outAResourceDatatypeDatatype, outAResourceObjectTripleElement, outAResourceOrQnamePrimaryExpression, outAResourceResourceTripleElement, outASelectQueryStart, outASourceSelector, outAStrBuiltincall, outATriple, outATrueBooleanLiteral, outATypedLiteralRdfLiteral, outAUnionGraphPattern, outAUnsignedNumericLiteralNumericLiteral, outAUntypedLiteralRdfLiteral, outAValueLogical, outAVariable, outAVariableListSelectClause, outAVariableObjectTripleElement, outAVariablePrimaryExpression, outAVariableResourceTripleElement, outAWhereClause, outAWildcardSelectClause, outStart
 
Methods inherited from class org.jrdf.sparql.parser.analysis.AnalysisAdapter
caseEOF, caseTAsk, caseTAsterisk, caseTAt, caseTBang, caseTBlank, caseTBoundCall, caseTColon, caseTComment, caseTDatatypeCall, caseTDatatypeprefix, caseTDbqescape, caseTDbqescapedtext, caseTDbqtext, caseTDbquote, caseTDecimal, caseTDescribe, caseTDouble, caseTDoubleamp, caseTDoublepipe, caseTEndcomment, caseTEquals, caseTFalseLiteral, caseTFilter, caseTFrom, caseTGt, caseTGte, caseTHash, caseTIdentifier, caseTInteger, caseTIsBlankCall, caseTIsIriCall, caseTIsLiteralCall, caseTIsUriCall, caseTLangCall, caseTLangtag, caseTLbracket, caseTLpar, caseTLt, caseTLte, caseTMinus, caseTNamed, caseTNequals, caseTOptional, caseTPeriod, caseTPlus, caseTPrefix, caseTQescape, caseTQescapedtext, caseTQtext, caseTQuote, caseTRbracket, caseTResource, caseTRpar, caseTSelect, caseTStrCall, caseTTerminator, caseTTrueLiteral, caseTUnion, caseTVariablename, 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
caseAAdditiveExpression, caseAAskClause, caseAAskQueryStart, caseABlockOfTriples, caseABlockOfTriplesFilteredBasicGraphPattern, caseABooleanLiteralLiteral, caseABooleanLiteralPrimaryExpression, caseABooleanNotUnaryExpression, caseABoundBuiltincall, caseABracketedExpression, caseABracketedExpressionConstraint, caseABracketedExpressionPrimaryExpression, caseABracketedVar, caseABuiltincallConstraint, caseABuiltincallPrimaryExpression, caseAConditionalAndExpression, caseAConditionalOrExpression, caseADatatypeBuiltincall, caseADbQuotedEscapedDbQuotedStrand, caseADbQuotedLiteralLiteralValue, caseADbQuotedUnescapedDbQuotedStrand, caseADecimalUnsignedNumericLiteral, caseADefaultSourceSelectorDatasetClause, caseADoubleUnsignedNumericLiteral, caseAEMoreNumericExpression, caseAFalseBooleanLiteral, caseAFilteredBasicGraphPatternGraphPattern, caseAFilterPattern, caseAFilterPatternGraphPatternOrFilter, caseAGraphPatternNotTriplesGraphPatternOrFilter, caseAGraphPatternOrFilterGraphPatternOperationPattern, caseAGroupGraphPattern, caseAGroupOrUnionGraphPattern, caseAGroupOrUnionGraphPatternGraphPatternNotTriples, caseAGteMoreNumericExpression, caseAGtMoreNumericExpression, caseAIntegerUnsignedNumericLiteral, caseAIriRefIriRefOrPrefixedName, caseAIsblankBuiltincall, caseAIsiriBuiltincall, caseAIsliteralBuiltincall, caseAIsuriBuiltincall, caseALangBuiltincall, caseALangLiteralRdfLiteral, caseALiteralObjectTripleElement, caseALteMoreNumericExpression, caseALtMoreNumericExpression, caseAMoreConditionalAndExpression, caseAMoreTriples, caseAMoreValueLogical, caseAMultiplicativeExpression, caseANamedSourceSelectorDatasetClause, caseANegativeNumericLiteralNumericLiteral, caseANeMoreNumericExpression, caseANumericExpression, caseANumericLiteralLiteral, caseANumericLiteralPrimaryExpression, caseAOptionalGraphPattern, caseAOptionalGraphPatternGraphPatternNotTriples, caseAPositiveNumericLiteralNumericLiteral, caseAPrefixdeclProlog, caseAPrefixedNameIriRefOrPrefixedName, caseAPrefixPrefixdecl, caseAPrimaryExpressionUnaryExpression, caseAQnameDatatypeDatatype, caseAQnameObjectTripleElement, caseAQnameQnameElement, caseAQnameResourceTripleElement, caseAQuotedEscapedQuotedStrand, caseAQuotedLiteralLiteralValue, caseAQuotedUnescapedQuotedStrand, caseARdfLiteralLiteral, caseARdfLiteralPrimaryExpression, caseARelationalExpression, caseAResourceDatatypeDatatype, caseAResourceObjectTripleElement, caseAResourceOrQnamePrimaryExpression, caseAResourceResourceTripleElement, caseASelectQueryStart, caseASourceSelector, caseAStrBuiltincall, caseATriple, caseATrueBooleanLiteral, caseATypedLiteralRdfLiteral, caseAUnionGraphPattern, caseAUnsignedNumericLiteralNumericLiteral, caseAUntypedLiteralRdfLiteral, caseAValueLogical, caseAVariable, caseAVariableListSelectClause, caseAVariableObjectTripleElement, caseAVariablePrimaryExpression, caseAVariableResourceTripleElement, caseAWhereClause, caseAWildcardSelectClause, caseEOF, caseStart, caseTAsk, caseTAsterisk, caseTAt, caseTBang, caseTBlank, caseTBoundCall, caseTColon, caseTComment, caseTDatatypeCall, caseTDatatypeprefix, caseTDbqescape, caseTDbqescapedtext, caseTDbqtext, caseTDbquote, caseTDecimal, caseTDescribe, caseTDouble, caseTDoubleamp, caseTDoublepipe, caseTEndcomment, caseTEquals, caseTFalseLiteral, caseTFilter, caseTFrom, caseTGt, caseTGte, caseTHash, caseTIdentifier, caseTInteger, caseTIsBlankCall, caseTIsIriCall, caseTIsLiteralCall, caseTIsUriCall, caseTLangCall, caseTLangtag, caseTLbracket, caseTLpar, caseTLt, caseTLte, caseTMinus, caseTNamed, caseTNequals, caseTOptional, caseTPeriod, caseTPlus, caseTPrefix, caseTQescape, caseTQescapedtext, caseTQtext, caseTQuote, caseTRbracket, caseTResource, caseTRpar, caseTSelect, caseTStrCall, caseTTerminator, caseTTrueLiteral, caseTUnion, caseTVariablename, caseTVariableprefix, caseTWhere, getIn, getOut, setIn, setOut
 

Constructor Detail

SparqlAnalyserImpl

public SparqlAnalyserImpl(TripleBuilder newTripleBuilder,
                          Graph newGraph,
                          GraphRelationFactory newGraphRelationFactory)
Method Detail

getQuery

public Query getQuery()
               throws 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:
ParserException - if the SPARQL parser gets an exception when parsing.

inStart

public void inStart(Start node)
Overrides:
inStart in class DepthFirstAdapter