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[]_tokenNamesstatic antlr.collections.impl.BitSet_tokenSet_0static antlr.collections.impl.BitSet_tokenSet_1static antlr.collections.impl.BitSet_tokenSet_2static antlr.collections.impl.BitSet_tokenSet_3static antlr.collections.impl.BitSet_tokenSet_4static 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)protectedRealTologParser(antlr.TokenBuffer tokenBuf, int k)RealTologParser(antlr.TokenStream lexer)protectedRealTologParser(antlr.TokenStream lexer, int k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclause()voidclauselist()voidcomparator()voiddeclarations()voiddelete()voidfunccall()TologStatementgetStatement()voidimportdecl()voidinit(TologLexer lexer)voidinsert()voidlimit()voidlit()voidlitlist()voidmerge()protected voidnotQNameHere()voidoffset()voidorder()voidorderpart()voidparam()voidparamlist()protected NumberparseNumber(String number)voidpredicateref()voidprefixdecl()voidquery()voidrule()voidruleset()voidselectlist()voidsetContext(ParseContextIF context)voidtopicref()voidupdate()voidupdatestatement()voidvalue()voidvalueorpair()-
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:
AntlrWrapExceptionantlr.TokenStreamException
-
query
public final void query() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
prefixdecl
public final void prefixdecl() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
importdecl
public final void importdecl() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
rule
public final void rule() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
selectlist
public final void selectlist() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
clauselist
public final void clauselist() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
order
public final void order() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
limit
public final void limit() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
offset
public final void offset() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
declarations
public final void declarations() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
clause
public final void clause() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
ruleset
public final void ruleset() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
paramlist
public final void paramlist() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
orderpart
public final void orderpart() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
predicateref
public final void predicateref() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
valueorpair
public final void valueorpair() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
value
public final void value() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
comparator
public final void comparator() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
topicref
public final void topicref() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
updatestatement
public final void updatestatement() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
delete
public final void delete() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
merge
public final void merge() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
update
public final void update() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
insert
public final void insert() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
litlist
public final void litlist() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
funccall
public final void funccall() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
lit
public final void lit() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
param
public final void param() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
-