org.tm4j.topicmap.utils
Class LTMParser
java.lang.Object
antlr.Parser
antlr.LLkParser
org.tm4j.topicmap.utils.LTMParser
- All Implemented Interfaces:
- LTMParserTokenTypes
- public class LTMParser
- extends antlr.LLkParser
- implements LTMParserTokenTypes
INTERNAL: Parser for the LTM syntax.
Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Fields inherited from interface org.tm4j.topicmap.utils.LTMParserTokenTypes |
AT, BASEURI, COLON, COMMA, COMMENT, DATA, EOF, EQUALS, LBRACKET, LCURLY, LPAREN, MERGEMAP, NAME, NULL_TREE_LOOKAHEAD, PERCENT, RBRACKET, RCURLY, RPAREN, SEMICOL, SLASH, STRING, TOPICMAPID, WS |
Constructor Summary |
|
LTMParser(antlr.ParserSharedInputState state)
|
|
LTMParser(antlr.TokenBuffer tokenBuf)
|
protected |
LTMParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
LTMParser(antlr.TokenStream lexer)
|
protected |
LTMParser(antlr.TokenStream lexer,
int k)
|
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 |
_tokenNames
public static final java.lang.String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
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)
setTopicMap
public void setTopicMap(TopicMap topicmap)
setBase
public void setBase(Locator base)
setSource
public void setSource(Locator source)
setProvider
public void setProvider(TopicMapProvider provider)
setIDGenerator
public void setIDGenerator(IDGenerator idgen)
init
public void init()
getCreatedRoles
public java.util.Collection getCreatedRoles()
setAlreadyLoaded
public void setAlreadyLoaded(java.util.Set alreadyLoaded)
topicmap
public final void topicmap()
throws antlr.RecognitionException,
antlr.TokenStreamException,
java.beans.PropertyVetoException,
TopicMapProcessingException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.beans.PropertyVetoException
TopicMapProcessingException
encodingDecl
public final void encodingDecl()
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,
java.beans.PropertyVetoException,
DuplicateResourceLocatorException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.beans.PropertyVetoException
DuplicateResourceLocatorException
topic
public final void topic()
throws antlr.RecognitionException,
antlr.TokenStreamException,
java.beans.PropertyVetoException,
TopicMapProcessingException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.beans.PropertyVetoException
TopicMapProcessingException
occurrence
public final void occurrence()
throws antlr.RecognitionException,
antlr.TokenStreamException,
java.beans.PropertyVetoException,
TopicMapProcessingException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.beans.PropertyVetoException
TopicMapProcessingException
association
public final void association()
throws antlr.RecognitionException,
antlr.TokenStreamException,
java.beans.PropertyVetoException,
TopicMapProcessingException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.beans.PropertyVetoException
TopicMapProcessingException
topname
public final void topname()
throws antlr.RecognitionException,
antlr.TokenStreamException,
java.beans.PropertyVetoException,
TopicMapProcessingException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.beans.PropertyVetoException
TopicMapProcessingException
assocrole
public final void assocrole()
throws antlr.RecognitionException,
antlr.TokenStreamException,
java.beans.PropertyVetoException,
TopicMapProcessingException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
java.beans.PropertyVetoException
TopicMapProcessingException