org.jrdf.sparql.analysis
Class ProjectAnalyserImpl

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.ProjectAnalyserImpl
All Implemented Interfaces:
ProjectAnalyser, Analysis, Switch

public final class ProjectAnalyserImpl
extends DepthFirstAdapter
implements ProjectAnalyser

Default implementation of SparqlAnalyser.

Version:
$Revision: 683 $
Author:
Tom Adams

Constructor Summary
ProjectAnalyserImpl(TripleBuilder newTripleBuilder, Graph newGraph)
           
 
Method Summary
 void caseAVariable(AVariable node)
           
 void caseAVariableListSelectClause(AVariableListSelectClause node)
           
 void caseAWildcardSelectClause(AWildcardSelectClause node)
           
 Expression getExpression()
           
 
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, caseAVariableObjectTripleElement, caseAVariablePrimaryExpression, caseAVariableResourceTripleElement, caseAWhereClause, 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, inStart, 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
 

Constructor Detail

ProjectAnalyserImpl

public ProjectAnalyserImpl(TripleBuilder newTripleBuilder,
                           Graph newGraph)
Method Detail

getExpression

public Expression getExpression()
                         throws ParserException
Specified by:
getExpression in interface ProjectAnalyser
Throws:
ParserException

caseAWildcardSelectClause

public void caseAWildcardSelectClause(AWildcardSelectClause node)
Specified by:
caseAWildcardSelectClause in interface Analysis
Overrides:
caseAWildcardSelectClause in class DepthFirstAdapter

caseAVariableListSelectClause

public void caseAVariableListSelectClause(AVariableListSelectClause node)
Specified by:
caseAVariableListSelectClause in interface Analysis
Overrides:
caseAVariableListSelectClause in class DepthFirstAdapter

caseAVariable

public void caseAVariable(AVariable node)
Specified by:
caseAVariable in interface Analysis
Overrides:
caseAVariable in class DepthFirstAdapter