Package net.ontopia.topicmaps.utils.ltm
Class LTMParser
- java.lang.Object
-
- antlr.Parser
-
- antlr.LLkParser
-
- net.ontopia.topicmaps.utils.ltm.LTMParser
-
- All Implemented Interfaces:
LTMParserTokenTypes
public class LTMParser extends antlr.LLkParser implements LTMParserTokenTypes
INTERNAL: Parser for the LTM syntax.
-
-
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
-
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
-
Fields inherited from interface net.ontopia.topicmaps.utils.ltm.LTMParserTokenTypes
AT, BASEURI, COLON, COMMA, COMMENT, DATA, EOF, EQUALS, INCLUDE, LBRACKET, LCURLY, LPAREN, MERGEMAP, NAME, NULL_TREE_LOOKAHEAD, PERCENT, PREFIX, RBRACKET, RCURLY, RPAREN, SEMICOL, SLASH, STRING, TILDE, TOPICMAPID, VERSION, WS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
association()
void
assocrole()
void
baseuri()
void
directive()
void
directives()
void
encodingDecl()
Collection
getCreatedRoles()
void
include()
void
init()
void
mergemap()
void
occurrence()
void
prefix()
void
setAlreadyLoaded(Set alreadyLoaded)
void
setBase(LocatorIF base)
void
setTopicMap(TopicMapIF topicmap)
void
topic()
void
topicmap()
void
topicmapid()
void
topname()
void
version()
-
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
-
-
Constructor Detail
-
LTMParser
protected LTMParser(antlr.TokenBuffer tokenBuf, int k)
-
LTMParser
public LTMParser(antlr.TokenBuffer tokenBuf)
-
LTMParser
protected LTMParser(antlr.TokenStream lexer, int k)
-
LTMParser
public LTMParser(antlr.TokenStream lexer)
-
LTMParser
public LTMParser(antlr.ParserSharedInputState state)
-
-
Method Detail
-
setTopicMap
public void setTopicMap(TopicMapIF topicmap)
-
setBase
public void setBase(LocatorIF base)
-
init
public void init()
-
getCreatedRoles
public Collection getCreatedRoles()
-
setAlreadyLoaded
public void setAlreadyLoaded(Set alreadyLoaded)
-
topicmap
public final void topicmap() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
encodingDecl
public final void encodingDecl() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
directives
public final void directives() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
topic
public final void topic() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
occurrence
public final void occurrence() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
association
public final void association() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
version
public final void version() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
directive
public final void directive() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
mergemap
public final void mergemap() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
baseuri
public final void baseuri() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
topicmapid
public final void topicmapid() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
include
public final void include() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
prefix
public final void prefix() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
topname
public final void topname() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
assocrole
public final void assocrole() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
-