de.fuberlin.wiwiss.wiqa.parser.javacc
Class WIQAParser

java.lang.Object
  extended bycom.hp.hpl.jena.query.lang.ParserBase
      extended byde.fuberlin.wiwiss.wiqa.parser.WIQAParserBase
          extended byde.fuberlin.wiwiss.wiqa.parser.javacc.WIQAParser
All Implemented Interfaces:
WIQAParserConstants

public class WIQAParser
extends WIQAParserBase
implements WIQAParserConstants


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 WIQAParserTokenManager token_source
           
 
Fields inherited from class com.hp.hpl.jena.query.lang.ParserBase
inConstructTemplate, nRDFfirst, nRDFnil, nRDFobject, nRDFpredicate, nRDFrest, nRDFsubject, nRDFtype, XSD_FALSE, XSD_TRUE
 
Fields inherited from interface de.fuberlin.wiwiss.wiqa.parser.javacc.WIQAParserConstants
A2Z, A2ZN, AND, ANON, ANY, ASC, ASK, AT, BANG, BASE, BLANK_NODE_LABEL, BOUND, BY, COLON, COMMA, CONSTRUCT, DATATYPE, DEFAULT, DESC, DESCRIBE, DESCRIPTION, DIGITS, DISTINCT, DOT, DTYPE, ECHAR, EOF, EQ, EXPL, EXPLANATION, EXPONENT, FALSE, FILTER, FLOATING_POINT, FROM, GE, GRAPH, GT, HEX, INTEGER, IS_BLANK, IS_LITERAL, IS_URI, KW_A, LANG, LANGTAG, LBRACE, LBRACKET, LE, LIMIT, LPAREN, LT, MINUS, NAME, NAMED, NCCHAR, NCCHAR1, NCCHAR1p, NCNAME, NCNAME_PREFIX, NE, NIL, OFFSET, OPTIONAL, ORDER, PATTERN, PLUS, PREFIX, Q_IRIref, Q_IRIref_COUNT, Q_IRIref_EXTENSION, QNAME, QNAME_COUNT, QNAME_EXTENSION, QNAME_NS, QUOTE_3D, QUOTE_3S, RBRACE, RBRACKET, REGEX, RPAREN, SC_AND, SC_OR, SELECT, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, STAR, STR, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, TILDE, tokenImage, TRUE, UNION, VAR1, VAR2, VARNAME, WHERE, WS
 
Constructor Summary
WIQAParser(InputStream stream)
           
WIQAParser(Reader stream)
           
WIQAParser(WIQAParserTokenManager tm)
           
 
Method Summary
 Expr AdditiveExpression()
           
 List ArgList()
           
 Node BlankNode()
           
 Node BlankNodePropertyList(TripleCollector acc)
           
 Node BooleanLiteral()
           
 Expr BrackettedExpression()
           
 Expr BuiltInCall()
           
 Node Collection(TripleCollector acc)
           
 List CompilationUnit()
           
 Expr ConditionalAndExpression()
           
 Expr ConditionalOrExpression()
           
 Constraint Constraint()
           
 Template ConstructTemplate()
           
 void ConstructTriples(TemplateGroup acc)
           
 CountConstraint CountConstraint(ElementNamedGraph namedGraph)
           
 Node CountIRIref()
           
 void disable_tracing()
           
 void enable_tracing()
           
 ExplanationTemplate ExplanationTemplate()
           
 Expr Expression()
           
 ElementExtension Extension()
           
 Node ExtensionIRIref()
           
 Expr FunctionCall()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 Node GraphNode(TripleCollector acc)
           
 Node GraphTerm()
           
 Node IRIref()
           
 Node IRIrefNotExtensionOrCount()
           
 Expr IRIrefOrFunction()
           
 Expr MultiplicativeExpression()
           
 void NamedGraphPattern(Policy policy)
           
 Expr NumericExpression()
           
 Node NumericLiteral()
           
 void ObjectList(Node s, Node p, TripleCollector acc)
           
 Policy Policy()
           
 void PolicyDescription(Policy policy)
           
 void PolicyName(Policy policy)
           
 void PrefixDecl(PrefixMapping prefixes)
           
 Expr PrimaryExpression()
           
 void PropertyList(Node s, TripleCollector acc)
           
 void PropertyListNotEmpty(Node s, TripleCollector acc)
           
 Node Q_IRI_REF()
           
 Node QName()
           
 Node RDFLiteral()
           
 Expr RegexExpression()
           
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 void ReInit(WIQAParserTokenManager tm)
           
 Expr RelationalExpression()
           
 String String()
           
 void Triples(TripleCollector acc)
           
 void Triples1(TripleCollector acc)
           
 void TriplesAndFilters(Policy policy, ElementNamedGraph namedGraph, ElementGroup elg)
           
 Node TriplesNode(TripleCollector acc)
           
 Expr UnaryExpression()
           
 Expr ValueLogical()
           
 Node Var()
           
 Node VarOrBlankNodeOrIRIref()
           
 Node VarOrIRIref()
           
 Node VarOrTerm()
           
 Node Verb()
           
 
Methods inherited from class de.fuberlin.wiwiss.wiqa.parser.WIQAParserBase
createNodeFromURI, createPolicy, createURIfromQName, fixupQName, getPrefixes
 
Methods inherited from class com.hp.hpl.jena.query.lang.ParserBase
asExpr, compressGroupOfOneGroup, createBNode, createBNode, createVariable, doubleValue, exMsg, fixupPrefix, getQuery, insert, insert, integerValue, makeNode, makeNode, makeNodeDouble, makeNodeInteger, makeNodeInteger, setInConstructTemplate, setQuery, stripChars, stripQuotes, unescapeCodePoint, unescapeCodePoint, unescapeStr, unescapeStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public WIQAParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

WIQAParser

public WIQAParser(InputStream stream)

WIQAParser

public WIQAParser(Reader stream)

WIQAParser

public WIQAParser(WIQAParserTokenManager tm)
Method Detail

CompilationUnit

public final List CompilationUnit()
                           throws ParseException
Throws:
ParseException

Policy

public final Policy Policy()
                    throws ParseException
Throws:
ParseException

PrefixDecl

public final void PrefixDecl(PrefixMapping prefixes)
                      throws ParseException
Throws:
ParseException

PolicyName

public final void PolicyName(Policy policy)
                      throws ParseException
Throws:
ParseException

PolicyDescription

public final void PolicyDescription(Policy policy)
                             throws ParseException
Throws:
ParseException

NamedGraphPattern

public final void NamedGraphPattern(Policy policy)
                             throws ParseException
Throws:
ParseException

TriplesAndFilters

public final void TriplesAndFilters(Policy policy,
                                    ElementNamedGraph namedGraph,
                                    ElementGroup elg)
                             throws ParseException
Throws:
ParseException

CountConstraint

public final CountConstraint CountConstraint(ElementNamedGraph namedGraph)
                                      throws ParseException
Throws:
ParseException

Extension

public final ElementExtension Extension()
                                                            throws ParseException
Throws:
ParseException

CountIRIref

public final Node CountIRIref()
                       throws ParseException
Throws:
ParseException

ExtensionIRIref

public final Node ExtensionIRIref()
                           throws ParseException
Throws:
ParseException

IRIrefNotExtensionOrCount

public final Node IRIrefNotExtensionOrCount()
                                     throws ParseException
Throws:
ParseException

FunctionCall

public final Expr FunctionCall()
                                                   throws ParseException
Throws:
ParseException

IRIrefOrFunction

public final Expr IRIrefOrFunction()
                                                       throws ParseException
Throws:
ParseException

ExplanationTemplate

public final ExplanationTemplate ExplanationTemplate()
                                              throws ParseException
Throws:
ParseException

Constraint

public final Constraint Constraint()
                                                       throws ParseException
Throws:
ParseException

ConstructTemplate

public final Template ConstructTemplate()
                                                            throws ParseException
Throws:
ParseException

ConstructTriples

public final void ConstructTriples(TemplateGroup acc)
                            throws ParseException
Throws:
ParseException

Triples

public final void Triples(TripleCollector acc)
                   throws ParseException
Throws:
ParseException

Triples1

public final void Triples1(TripleCollector acc)
                    throws ParseException
Throws:
ParseException

PropertyList

public final void PropertyList(Node s,
                               TripleCollector acc)
                        throws ParseException
Throws:
ParseException

PropertyListNotEmpty

public final void PropertyListNotEmpty(Node s,
                                       TripleCollector acc)
                                throws ParseException
Throws:
ParseException

ObjectList

public final void ObjectList(Node s,
                             Node p,
                             TripleCollector acc)
                      throws ParseException
Throws:
ParseException

Verb

public final Node Verb()
                throws ParseException
Throws:
ParseException

TriplesNode

public final Node TriplesNode(TripleCollector acc)
                       throws ParseException
Throws:
ParseException

BlankNodePropertyList

public final Node BlankNodePropertyList(TripleCollector acc)
                                 throws ParseException
Throws:
ParseException

Collection

public final Node Collection(TripleCollector acc)
                      throws ParseException
Throws:
ParseException

GraphNode

public final Node GraphNode(TripleCollector acc)
                     throws ParseException
Throws:
ParseException

VarOrTerm

public final Node VarOrTerm()
                     throws ParseException
Throws:
ParseException

VarOrIRIref

public final Node VarOrIRIref()
                       throws ParseException
Throws:
ParseException

VarOrBlankNodeOrIRIref

public final Node VarOrBlankNodeOrIRIref()
                                  throws ParseException
Throws:
ParseException

Var

public final Node 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

BuiltInCall

public final Expr BuiltInCall()
                                                  throws ParseException
Throws:
ParseException

RegexExpression

public final Expr RegexExpression()
                                                      throws ParseException
Throws:
ParseException

ArgList

public final List ArgList()
                   throws ParseException
Throws:
ParseException

BrackettedExpression

public final Expr BrackettedExpression()
                                                           throws ParseException
Throws:
ParseException

PrimaryExpression

public final Expr PrimaryExpression()
                                                        throws ParseException
Throws:
ParseException

NumericLiteral

public final Node NumericLiteral()
                          throws ParseException
Throws:
ParseException

RDFLiteral

public final Node RDFLiteral()
                      throws ParseException
Throws:
ParseException

BooleanLiteral

public final Node BooleanLiteral()
                          throws ParseException
Throws:
ParseException

String

public final String String()
                    throws ParseException
Throws:
ParseException

IRIref

public final Node IRIref()
                  throws ParseException
Throws:
ParseException

QName

public final Node QName()
                 throws ParseException
Throws:
ParseException

BlankNode

public final Node BlankNode()
                     throws ParseException
Throws:
ParseException

Q_IRI_REF

public final Node Q_IRI_REF()
                     throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(WIQAParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()