org.exist.parser
Class XPathParser

java.lang.Object
  extended byantlr.Parser
      extended byantlr.LLkParser
          extended byorg.exist.parser.XPathParser
All Implemented Interfaces:
XPathParserTokenTypes

public class XPathParser
extends antlr.LLkParser
implements XPathParserTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
protected  Environment env
           
protected  boolean error
           
protected  java.util.ArrayList exceptions
           
protected  DocumentSet includeDocs
           
protected static java.lang.String[][] internalFunctions
           
protected  BrokerPool pool
           
protected  PathExpr topExpr
           
protected  User user
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface org.exist.parser.XPathParserTokenTypes
ANDEQ, AT, ATTRIB_STAR, BASECHAR, COLON, COMMA, CONST, DIGIT, DSLASH, EOF, EQ, GT, GTEQ, IDEOGRAPHIC, INT, LITERAL_ancestor, LITERAL_and, LITERAL_attribute, LITERAL_child, LITERAL_collection, LITERAL_contains, LITERAL_descendant, LITERAL_doctype, LITERAL_document, LITERAL_match, LITERAL_near, LITERAL_node, LITERAL_or, LITERAL_parent, LITERAL_self, LITERAL_text, LITERAL_xcollection, LITERAL_xpointer, LPAREN, LPPAREN, LT, LTEQ, NCNAME, NEQ, NMCHAR, NMSTART, NULL_TREE_LOOKAHEAD, OREQ, PARENT, PLUS, RPAREN, RPPAREN, SELF, SLASH, STAR, UNION, VARIABLE, WS
 
Constructor Summary
  XPathParser(BrokerPool pool, User user, antlr.TokenStream lexer)
           
  XPathParser(BrokerPool pool, User user, antlr.TokenStream lexer, DocumentSet docs)
           
  XPathParser(antlr.ParserSharedInputState state)
           
  XPathParser(antlr.TokenBuffer tokenBuf)
           
protected XPathParser(antlr.TokenBuffer tokenBuf, int k)
           
  XPathParser(antlr.TokenStream lexer)
           
protected XPathParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 void additive_expr(PathExpr expr)
           
 void and_expr(PathExpr exprIn)
           
 int axis_spec()
           
 void document_function(PathExpr expr)
           
 void empty_arglist()
           
 void equality_expr(PathExpr exprIn)
           
 int equality_operator()
           
 void expr(PathExpr exprIn)
           
 boolean foundErrors()
           
 int fulltext_operator()
           
 void function_args(Function fun)
           
 Expression function_call(PathExpr expr)
           
 java.lang.String getErrorMsg()
           
protected  void handleException(java.lang.Exception ex)
           
 void or_expr(PathExpr exprIn)
           
 void pathexpr(PathExpr expr)
           
 Predicate predicate(PathExpr expr)
           
 Expression primary_expr(PathExpr expr)
           
 java.lang.String qname()
           
 Expression regularexpr(PathExpr expr)
           
 void relational_expr(PathExpr expr)
           
 int relational_operator()
           
 void setEnvironment(Environment environment)
           
 Expression step(PathExpr expr)
           
 void union_expr(PathExpr expr)
           
 void xpath_expr(PathExpr exprIn)
           
 void xpointer_expr(PathExpr exprIn)
           
 void xpointer(PathExpr exprIn)
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

includeDocs

protected DocumentSet includeDocs

pool

protected BrokerPool pool

exceptions

protected java.util.ArrayList exceptions

topExpr

protected PathExpr topExpr

env

protected Environment env

error

protected boolean error

user

protected User user

internalFunctions

protected static final java.lang.String[][] internalFunctions

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1

_tokenSet_2

public static final antlr.collections.impl.BitSet _tokenSet_2

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3
Constructor Detail

XPathParser

public XPathParser(BrokerPool pool,
                   User user,
                   antlr.TokenStream lexer)

XPathParser

public XPathParser(BrokerPool pool,
                   User user,
                   antlr.TokenStream lexer,
                   DocumentSet docs)

XPathParser

protected XPathParser(antlr.TokenBuffer tokenBuf,
                      int k)

XPathParser

public XPathParser(antlr.TokenBuffer tokenBuf)

XPathParser

protected XPathParser(antlr.TokenStream lexer,
                      int k)

XPathParser

public XPathParser(antlr.TokenStream lexer)

XPathParser

public XPathParser(antlr.ParserSharedInputState state)
Method Detail

setEnvironment

public void setEnvironment(Environment environment)

getErrorMsg

public java.lang.String getErrorMsg()

foundErrors

public boolean foundErrors()

handleException

protected void handleException(java.lang.Exception ex)

xpointer

public final void xpointer(PathExpr exprIn)
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException,
                           PermissionDeniedException,
                           EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

xpointer_expr

public final void xpointer_expr(PathExpr exprIn)
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException,
                                PermissionDeniedException,
                                EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

document_function

public final void document_function(PathExpr expr)
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException,
                                    PermissionDeniedException,
                                    EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

or_expr

public final void or_expr(PathExpr exprIn)
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException,
                          PermissionDeniedException,
                          EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

expr

public final void expr(PathExpr exprIn)
                throws antlr.RecognitionException,
                       antlr.TokenStreamException,
                       PermissionDeniedException,
                       EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

xpath_expr

public final void xpath_expr(PathExpr exprIn)
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException,
                             PermissionDeniedException,
                             EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

and_expr

public final void and_expr(PathExpr exprIn)
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException,
                           PermissionDeniedException,
                           EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

equality_expr

public final void equality_expr(PathExpr exprIn)
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException,
                                PermissionDeniedException,
                                EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

union_expr

public final void union_expr(PathExpr expr)
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException,
                             PermissionDeniedException,
                             EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

equality_operator

public final int equality_operator()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException,
                                   PermissionDeniedException,
                                   EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

relational_expr

public final void relational_expr(PathExpr expr)
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException,
                                  PermissionDeniedException,
                                  EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

fulltext_operator

public final int fulltext_operator()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException,
                                   PermissionDeniedException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException

additive_expr

public final void additive_expr(PathExpr expr)
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException,
                                PermissionDeniedException,
                                EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

relational_operator

public final int relational_operator()
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException,
                                     PermissionDeniedException,
                                     EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

pathexpr

public final void pathexpr(PathExpr expr)
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException,
                           PermissionDeniedException,
                           EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

regularexpr

public final Expression regularexpr(PathExpr expr)
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException,
                                    PermissionDeniedException,
                                    EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

primary_expr

public final Expression primary_expr(PathExpr expr)
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException,
                                     PermissionDeniedException,
                                     EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

function_call

public final Expression function_call(PathExpr expr)
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException,
                                      PermissionDeniedException,
                                      EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

empty_arglist

public final void empty_arglist()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

function_args

public final void function_args(Function fun)
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException,
                                PermissionDeniedException,
                                EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

axis_spec

public final int axis_spec()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

step

public final Expression step(PathExpr expr)
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException,
                             PermissionDeniedException,
                             EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

predicate

public final Predicate predicate(PathExpr expr)
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException,
                                 PermissionDeniedException,
                                 EXistException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
PermissionDeniedException
EXistException

qname

public final java.lang.String qname()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException


Copyright (C) Wolfgang Meier. All rights reserved.