xoql.parser

Class XoqlWalker

Implemented Interfaces:
XoqlWalkerTokenTypes
Known Direct Subclasses:
ParametrizedQuery, QueryParser

public class XoqlWalker
extends antlr.TreeParser
implements XoqlWalkerTokenTypes

XoqlWalker class extends antlr.TreeParser
Author:
simonkm

Field Summary

static String[]
_tokenNames
static BitSet
_tokenSet_0
(package private) VBindings
bindings
(package private) ArrayList
previousVarBinding
DR*********
(package private) IRepository
repository

Fields inherited from interface xoql.parser.XoqlWalkerTokenTypes

AFTER, ALL, ALLTREE, AND, ARROBA, AS, ATTR, ATTRIBUTE, ATTRIBUTES, BEFORE, BINDING, BINDINGS, COMMA, CONCAT, CONTAINS, CONTENT, DDOT, DELETE, DIGIT, DISTRIBUTE, DISTRIBUTEW, DIV, DOUBLE, DQUOTE, DRW_CL, DR_CL, DSLASH, ELEMENT, EOF, EQUAL, ETAG, EXCLAMATION, EXIST, FALSE, FARGS, FCALL, FNAME, FOR, FROM, FWR, FWS, FWWR, GE, GT, ID, IN, INSERT, INT, LBRACE, LCASE, LE, LETTER, LIST, LOCATION, LPAREN, LT, MATCH, MBINDING, MCALL, MINUS, NAME, NEWATTR, NEW_ELEMENT, NOT, NOTEQUAL, NULL_TREE_LOOKAHEAD, NUM, OPERATIONS, OR, PLUS, QUOTE, RBRACE, REGEX, REGEX_MATCH, REPLACE, REPLICATE, REPLICATEW, RPAREN, SELECT, SEMI, SHARP, SLASH, STAR, STRICTCONTAINS, STRING, TEXT, TO, TRUE, UCASE, UNARY_MINUS, UNARY_PLUS, UNION, UPD, UPDATE, VALUE, VBAR, VOCAB, WHERE, WITH, WITHBINDINGS, WS

Constructor Summary

XoqlWalker()

Method Summary

Iterator
allExpr(AST _t)
Iterator
attrExpr(AST _t)
void
attribute(AST _t, ArrayList v)
Iterator
attributeExpr(AST _t)
Iterator
attributesExpr(AST _t)
Iterator
attributesNSExpr(AST _t)
Iterator
binaryExpr(AST _t)
Iterator
childNodesExpr(AST _t)
void
commaSeparatedExpr(AST _t, ArrayList v)
Iterator
constExpr(AST _t)
void
contentsExpr(AST _t, ArrayList v)
Iterator
createElementExpr(AST _t)
Iterator
delete(AST _t)
Iterator
descNodesExpr(AST _t)
Integer
drExpr(AST _t)
Iterator
elementExpr(AST _t)
Iterator
existExpr(AST _t)
Iterator
expr(AST _t)
void
fNameArgs(AST _t, ArrayList v)
Iterator
functionCallExpr(AST _t)
Iterator
idExpr(AST _t)
Iterator
insert(AST _t)
Iterator
insertExpr(AST _t)
Iterator
listExpr(AST _t)
Iterator
location(AST _t)
void
mBinding(AST _t, ArrayList bindingList)
Boolean
markExpr(AST _t)
Iterator
methodCall(AST _t, Iterator arg)
void
operation(AST _t, ArrayList v, ArrayList o, Hashtable loc)
void
operations(AST _t, ArrayList v, ArrayList o, Hashtable loc)
BinaryPredicate
pathConstraint(AST _t)
BinaryPredicate
pathConstraintExpr(AST _t)
void
positionExpr(AST _t)
Iterator
regexMatchExpr(AST _t)
Iterator
rfwExpr(AST _t)
Iterator
rfwwExpr(AST _t)
Iterator
selectExpr(AST _t)
void
setRepository(IRepository repository)
Iterator
sfwExpr(AST _t)
Iterator
stringExpr(AST _t)
Iterator
textExpr(AST _t)
Iterator
unaryExpr(AST _t)
Iterator
updExpr(AST _t)
D&R ************************************
Iterator
update(AST _t)
void
vBinding(AST _t, ArrayList bindingList)
Iterator
vBindings(AST _t)
ArrayList
withBindings(AST _t)

Field Details

_tokenNames

public static final String[] _tokenNames

_tokenSet_0

public static final BitSet _tokenSet_0

bindings

(package private)  VBindings bindings

previousVarBinding

(package private)  ArrayList previousVarBinding
DR*********

repository

(package private)  IRepository repository

Constructor Details

XoqlWalker

public XoqlWalker()

Method Details

allExpr

public final Iterator allExpr(AST _t)
            throws RecognitionException

attrExpr

public final Iterator attrExpr(AST _t)
            throws RecognitionException

attribute

public final void attribute(AST _t,
                            ArrayList v)
            throws RecognitionException

attributeExpr

public final Iterator attributeExpr(AST _t)
            throws RecognitionException

attributesExpr

public final Iterator attributesExpr(AST _t)
            throws RecognitionException

attributesNSExpr

public final Iterator attributesNSExpr(AST _t)
            throws RecognitionException

binaryExpr

public final Iterator binaryExpr(AST _t)
            throws RecognitionException
Parameters:
_t -
Returns:

childNodesExpr

public final Iterator childNodesExpr(AST _t)
            throws RecognitionException

commaSeparatedExpr

public final void commaSeparatedExpr(AST _t,
                                     ArrayList v)
            throws RecognitionException

constExpr

public final Iterator constExpr(AST _t)
            throws RecognitionException

contentsExpr

public final void contentsExpr(AST _t,
                               ArrayList v)
            throws RecognitionException

createElementExpr

public final Iterator createElementExpr(AST _t)
            throws RecognitionException

delete

public final Iterator delete(AST _t)
            throws RecognitionException

descNodesExpr

public final Iterator descNodesExpr(AST _t)
            throws RecognitionException

drExpr

public final Integer drExpr(AST _t)
            throws RecognitionException

elementExpr

public final Iterator elementExpr(AST _t)
            throws RecognitionException

existExpr

public final Iterator existExpr(AST _t)
            throws RecognitionException

expr

public final Iterator expr(AST _t)
            throws RecognitionException
Parameters:
_t -
Returns:

fNameArgs

public final void fNameArgs(AST _t,
                            ArrayList v)
            throws RecognitionException

functionCallExpr

public final Iterator functionCallExpr(AST _t)
            throws RecognitionException
Parameters:
_t -
Returns:

idExpr

public final Iterator idExpr(AST _t)
            throws RecognitionException

insert

public final Iterator insert(AST _t)
            throws RecognitionException

insertExpr

public final Iterator insertExpr(AST _t)
            throws RecognitionException

listExpr

public final Iterator listExpr(AST _t)
            throws RecognitionException
Parameters:
_t -
Returns:

location

public final Iterator location(AST _t)
            throws RecognitionException

mBinding

public final void mBinding(AST _t,
                           ArrayList bindingList)
            throws RecognitionException

markExpr

public final Boolean markExpr(AST _t)
            throws RecognitionException

methodCall

public final Iterator methodCall(AST _t,
                                 Iterator arg)
            throws RecognitionException

operation

public final void operation(AST _t,
                            ArrayList v,
                            ArrayList o,
                            Hashtable loc)
            throws RecognitionException

operations

public final void operations(AST _t,
                             ArrayList v,
                             ArrayList o,
                             Hashtable loc)
            throws RecognitionException

pathConstraint

public final BinaryPredicate pathConstraint(AST _t)
            throws RecognitionException

pathConstraintExpr

public final BinaryPredicate pathConstraintExpr(AST _t)
            throws RecognitionException

positionExpr

public final void positionExpr(AST _t)
            throws RecognitionException

regexMatchExpr

public final Iterator regexMatchExpr(AST _t)
            throws RecognitionException

rfwExpr

public final Iterator rfwExpr(AST _t)
            throws RecognitionException

rfwwExpr

public final Iterator rfwwExpr(AST _t)
            throws RecognitionException

selectExpr

public final Iterator selectExpr(AST _t)
            throws RecognitionException

setRepository

public void setRepository(IRepository repository)

sfwExpr

public final Iterator sfwExpr(AST _t)
            throws RecognitionException
Parameters:
_t -
Returns:

stringExpr

public final Iterator stringExpr(AST _t)
            throws RecognitionException

textExpr

public final Iterator textExpr(AST _t)
            throws RecognitionException

unaryExpr

public final Iterator unaryExpr(AST _t)
            throws RecognitionException
Parameters:
_t -
Returns:

updExpr

public final Iterator updExpr(AST _t)
            throws RecognitionException
D&R ************************************

update

public final Iterator update(AST _t)
            throws RecognitionException

vBinding

public final void vBinding(AST _t,
                           ArrayList bindingList)
            throws RecognitionException

vBindings

public final Iterator vBindings(AST _t)
            throws RecognitionException

withBindings

public final ArrayList withBindings(AST _t)
            throws RecognitionException