Class SPARQLParser10
- java.lang.Object
-
- org.apache.jena.sparql.lang.QueryParserBase
-
- org.apache.jena.sparql.lang.SPARQLParserBase
-
- org.apache.jena.sparql.lang.sparql_10.SPARQLParser10
-
- All Implemented Interfaces:
SPARQLParser10Constants
public class SPARQLParser10 extends SPARQLParserBase implements SPARQLParser10Constants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.SPARQLParser10TokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from class org.apache.jena.sparql.lang.QueryParserBase
ParserLoggerName
-
Fields inherited from interface org.apache.jena.sparql.lang.sparql_10.SPARQLParser10Constants
A2Z, A2ZN, AND, ANON, ASC, ASK, AT, BANG, BASE, BLANK_NODE_LABEL, BOUND, BY, COLON, COMMA, CONSTRUCT, DATATYPE, DECIMAL, DECIMAL_NEGATIVE, DECIMAL_POSITIVE, DEFAULT, DESC, DESCRIBE, DIGITS, DISTINCT, DOT, DOUBLE, DOUBLE_NEGATIVE, DOUBLE_POSITIVE, DTYPE, ECHAR, EOF, EQ, EXPONENT, FALSE, FILTER, FROM, GE, GRAPH, GT, INTEGER, INTEGER_NEGATIVE, INTEGER_POSITIVE, IRIref, IS_BLANK, IS_IRI, IS_LITERAL, IS_URI, KW_A, LANG, LANGMATCHES, LANGTAG, LBRACE, LBRACKET, LE, LIMIT, LPAREN, LT, MINUS, NAMED, NE, NIL, OFFSET, OPTIONAL, ORDER, PLUS, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_PREFIX, PNAME_LN, PNAME_NS, PREFIX, QUOTE_3D, QUOTE_3S, RBRACE, RBRACKET, REDUCED, REGEX, RPAREN, SAME_TERM, SC_AND, SC_OR, SELECT, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, STAR, STR, STRDT, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, STRLANG, TILDE, tokenImage, TRUE, UNION, UNKNOWN, VAR1, VAR2, VARNAME, WHERE, WS
-
-
Constructor Summary
Constructors Constructor Description SPARQLParser10(java.io.InputStream stream)Constructor with InputStream.SPARQLParser10(java.io.InputStream stream, java.lang.String encoding)Constructor with InputStream and supplied encodingSPARQLParser10(java.io.Reader stream)Constructor.SPARQLParser10(SPARQLParser10TokenManager tm)Constructor with generated Token Manager.
-
Method Summary
-
Methods inherited from class org.apache.jena.sparql.lang.SPARQLParserBase
getQuery, setQuery, setUpdate
-
Methods inherited from class org.apache.jena.sparql.lang.QueryParserBase
getPrologue, setPrologue, throwParseException, throwParseException
-
-
-
-
Field Detail
-
token_source
public SPARQLParser10TokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
SPARQLParser10
public SPARQLParser10(java.io.InputStream stream)
Constructor with InputStream.
-
SPARQLParser10
public SPARQLParser10(java.io.InputStream stream, java.lang.String encoding)Constructor with InputStream and supplied encoding
-
SPARQLParser10
public SPARQLParser10(java.io.Reader stream)
Constructor.
-
SPARQLParser10
public SPARQLParser10(SPARQLParser10TokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
QueryUnit
public final void QueryUnit() throws ParseException- Throws:
ParseException
-
Query
public final void Query() throws ParseException- Throws:
ParseException
-
Prologue
public final void Prologue() throws ParseException- Throws:
ParseException
-
BaseDecl
public final void BaseDecl() throws ParseException- Throws:
ParseException
-
PrefixDecl
public final void PrefixDecl() throws ParseException- Throws:
ParseException
-
SelectQuery
public final void SelectQuery() throws ParseException- Throws:
ParseException
-
SubSelect
public final void SubSelect() throws ParseException- Throws:
ParseException
-
Project
public final void Project() throws ParseException- Throws:
ParseException
-
ConstructQuery
public final void ConstructQuery() throws ParseException- Throws:
ParseException
-
DescribeQuery
public final void DescribeQuery() throws ParseException- Throws:
ParseException
-
AskQuery
public final void AskQuery() throws ParseException- Throws:
ParseException
-
DatasetClause
public final void DatasetClause() throws ParseException- Throws:
ParseException
-
DefaultGraphClause
public final void DefaultGraphClause() throws ParseException- Throws:
ParseException
-
NamedGraphClause
public final void NamedGraphClause() throws ParseException- Throws:
ParseException
-
SourceSelector
public final java.lang.String SourceSelector() throws ParseException- Throws:
ParseException
-
WhereClause
public final void WhereClause() throws ParseException- Throws:
ParseException
-
SolutionModifier
public final void SolutionModifier() throws ParseException- Throws:
ParseException
-
OrderClause
public final void OrderClause() throws ParseException- Throws:
ParseException
-
OrderCondition
public final void OrderCondition() throws ParseException- Throws:
ParseException
-
LimitOffsetClauses
public final void LimitOffsetClauses() throws ParseException- Throws:
ParseException
-
LimitClause
public final void LimitClause() throws ParseException- Throws:
ParseException
-
OffsetClause
public final void OffsetClause() throws ParseException- Throws:
ParseException
-
GroupGraphPattern
public final Element GroupGraphPattern() throws ParseException
- Throws:
ParseException
-
GroupGraphPatternSub
public final Element GroupGraphPatternSub() throws ParseException
- Throws:
ParseException
-
TriplesBlock
public final Element TriplesBlock(ElementTriplesBlock acc) throws ParseException
- Throws:
ParseException
-
GraphPatternNotTriples
public final Element GraphPatternNotTriples() throws ParseException
- Throws:
ParseException
-
OptionalGraphPattern
public final Element OptionalGraphPattern() throws ParseException
- Throws:
ParseException
-
GraphGraphPattern
public final Element GraphGraphPattern() throws ParseException
- Throws:
ParseException
-
GroupOrUnionGraphPattern
public final Element GroupOrUnionGraphPattern() throws ParseException
- Throws:
ParseException
-
Filter
public final Element Filter() throws ParseException
- Throws:
ParseException
-
Constraint
public final Expr Constraint() throws ParseException
- Throws:
ParseException
-
FunctionCall
public final Expr FunctionCall() throws ParseException
- Throws:
ParseException
-
ArgList
public final ExprList ArgList() throws ParseException
- Throws:
ParseException
-
ParamList
public final ExprList ParamList() throws ParseException
- Throws:
ParseException
-
ConstructTemplate
public final Template ConstructTemplate() throws ParseException
- Throws:
ParseException
-
ConstructTriples
public final void ConstructTriples(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
TriplesSameSubject
public final void TriplesSameSubject(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
PropertyListNotEmpty
public final void PropertyListNotEmpty(Node s, TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
PropertyList
public final void PropertyList(Node s, TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
ObjectList
public final void ObjectList(Node s, Node p, Path path, TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
Object
public final void Object(Node s, Node p, Path path, TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
Verb
public final Node Verb() throws ParseException
- Throws:
ParseException
-
TriplesNode
public final Node TriplesNode(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
BlankNodePropertyList
public final Node BlankNodePropertyList(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
Collection
public final Node Collection(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
GraphNode
public final Node GraphNode(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
VarOrTerm
public final Node VarOrTerm() throws ParseException
- Throws:
ParseException
-
VarOrIRIref
public final Node VarOrIRIref() throws ParseException
- Throws:
ParseException
-
Var
public final Var Var() throws ParseException
- Throws:
ParseException
-
GraphTerm
public final Node GraphTerm() throws ParseException
- Throws:
ParseException
-
Expression
public final Expr Expression() throws ParseException
- Throws:
ParseException
-
ConditionalOrExpression
public final Expr ConditionalOrExpression() throws ParseException
- Throws:
ParseException
-
ConditionalAndExpression
public final Expr ConditionalAndExpression() throws ParseException
- Throws:
ParseException
-
ValueLogical
public final Expr ValueLogical() throws ParseException
- Throws:
ParseException
-
RelationalExpression
public final Expr RelationalExpression() throws ParseException
- Throws:
ParseException
-
NumericExpression
public final Expr NumericExpression() throws ParseException
- Throws:
ParseException
-
AdditiveExpression
public final Expr AdditiveExpression() throws ParseException
- Throws:
ParseException
-
MultiplicativeExpression
public final Expr MultiplicativeExpression() throws ParseException
- Throws:
ParseException
-
UnaryExpression
public final Expr UnaryExpression() throws ParseException
- Throws:
ParseException
-
PrimaryExpression
public final Expr PrimaryExpression() throws ParseException
- Throws:
ParseException
-
BrackettedExpression
public final Expr BrackettedExpression() throws ParseException
- Throws:
ParseException
-
BuiltInCall
public final Expr BuiltInCall() throws ParseException
- Throws:
ParseException
-
RegexExpression
public final Expr RegexExpression() throws ParseException
- Throws:
ParseException
-
IRIrefOrFunction
public final Expr IRIrefOrFunction() throws ParseException
- Throws:
ParseException
-
RDFLiteral
public final Node RDFLiteral() throws ParseException
- Throws:
ParseException
-
NumericLiteral
public final Node NumericLiteral() throws ParseException
- Throws:
ParseException
-
NumericLiteralUnsigned
public final Node NumericLiteralUnsigned() throws ParseException
- Throws:
ParseException
-
NumericLiteralPositive
public final Node NumericLiteralPositive() throws ParseException
- Throws:
ParseException
-
NumericLiteralNegative
public final Node NumericLiteralNegative() throws ParseException
- Throws:
ParseException
-
BooleanLiteral
public final Node BooleanLiteral() throws ParseException
- Throws:
ParseException
-
String
public final java.lang.String String() throws ParseException- Throws:
ParseException
-
IRIref
public final java.lang.String IRIref() throws ParseException- Throws:
ParseException
-
PrefixedName
public final java.lang.String PrefixedName() throws ParseException- Throws:
ParseException
-
BlankNode
public final Node BlankNode() throws ParseException
- Throws:
ParseException
-
IRI_REF
public final java.lang.String IRI_REF() throws ParseException- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)Reinitialise.
-
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
-
ReInit
public void ReInit(SPARQLParser10TokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-