Class RealTologParser
- java.lang.Object
-
- antlr.Parser
-
- antlr.LLkParser
-
- net.ontopia.topicmaps.query.parser.RealTologParser
-
- All Implemented Interfaces:
RealTologParserTokenTypes
public class RealTologParser extends antlr.LLkParser implements RealTologParserTokenTypes
INTERNAL: Parser for the tolog query language.
-
-
Field Summary
Fields Modifier and Type Field Description static 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
static antlr.collections.impl.BitSet
_tokenSet_4
static antlr.collections.impl.BitSet
_tokenSet_5
-
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
-
Fields inherited from interface net.ontopia.topicmaps.query.parser.RealTologParserTokenTypes
ADDRESS, AS, ASC, BY, COLON, COMMA, CONNECT, COUNT, DELETE, DESC, DOUBLEPIPE, EOF, EQUALS, FOR, FROM, GREATERTHAN, GREATERTHANEQ, IDENT, IMPORT, INDICATOR, INSERT, LCURLY, LESSTHAN, LESSTHANEQ, LIMIT, LPAREN, MERGE, NOT, NOTEQUALS, NULL_TREE_LOOKAHEAD, NUMBER, OBJID, OFFSET, ORDER, PARAMETER, PERIOD, PIPE, POSITIVEINTEGER, QUESTIONM, RCURLY, RPAREN, SELECT, SOURCELOC, STRING, UPDATE, USING, VARIABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description RealTologParser(antlr.ParserSharedInputState state)
RealTologParser(antlr.TokenBuffer tokenBuf)
protected
RealTologParser(antlr.TokenBuffer tokenBuf, int k)
RealTologParser(antlr.TokenStream lexer)
protected
RealTologParser(antlr.TokenStream lexer, int k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clause()
void
clauselist()
void
comparator()
void
declarations()
void
delete()
void
funccall()
TologStatement
getStatement()
void
importdecl()
void
init(TologLexer lexer)
void
insert()
void
limit()
void
lit()
void
litlist()
void
merge()
protected void
notQNameHere()
void
offset()
void
order()
void
orderpart()
void
param()
void
paramlist()
protected Number
parseNumber(String number)
void
predicateref()
void
prefixdecl()
void
query()
void
rule()
void
ruleset()
void
selectlist()
void
setContext(ParseContextIF context)
void
topicref()
void
update()
void
updatestatement()
void
value()
void
valueorpair()
-
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, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
-
-
-
Field Detail
-
_tokenNames
public static final 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
-
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
-
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
-
-
Constructor Detail
-
RealTologParser
protected RealTologParser(antlr.TokenBuffer tokenBuf, int k)
-
RealTologParser
public RealTologParser(antlr.TokenBuffer tokenBuf)
-
RealTologParser
protected RealTologParser(antlr.TokenStream lexer, int k)
-
RealTologParser
public RealTologParser(antlr.TokenStream lexer)
-
RealTologParser
public RealTologParser(antlr.ParserSharedInputState state)
-
-
Method Detail
-
init
public void init(TologLexer lexer)
-
setContext
public void setContext(ParseContextIF context)
-
getStatement
public TologStatement getStatement()
-
notQNameHere
protected void notQNameHere() throws AntlrWrapException, antlr.TokenStreamException
- Throws:
AntlrWrapException
antlr.TokenStreamException
-
query
public final void query() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
prefixdecl
public final void prefixdecl() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
importdecl
public final void importdecl() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
rule
public final void rule() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
selectlist
public final void selectlist() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
clauselist
public final void clauselist() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
order
public final void order() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
limit
public final void limit() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
offset
public final void offset() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
declarations
public final void declarations() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
clause
public final void clause() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
ruleset
public final void ruleset() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
paramlist
public final void paramlist() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
orderpart
public final void orderpart() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
predicateref
public final void predicateref() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
valueorpair
public final void valueorpair() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
value
public final void value() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
comparator
public final void comparator() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
topicref
public final void topicref() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
updatestatement
public final void updatestatement() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
delete
public final void delete() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
merge
public final void merge() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
update
public final void update() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
insert
public final void insert() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
litlist
public final void litlist() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
funccall
public final void funccall() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
lit
public final void lit() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
param
public final void param() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
-