Package net.ontopia.topicmaps.utils.ctm
Class CTMParser
- java.lang.Object
-
- antlr.Parser
-
- antlr.LLkParser
-
- net.ontopia.topicmaps.utils.ctm.CTMParser
-
- All Implemented Interfaces:
CTMParserTokenTypes
public class CTMParser extends antlr.LLkParser implements CTMParserTokenTypes
INTERNAL: Parser for the CTM 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_10
static antlr.collections.impl.BitSet
_tokenSet_11
static antlr.collections.impl.BitSet
_tokenSet_12
static antlr.collections.impl.BitSet
_tokenSet_13
static antlr.collections.impl.BitSet
_tokenSet_14
static antlr.collections.impl.BitSet
_tokenSet_15
static antlr.collections.impl.BitSet
_tokenSet_16
static antlr.collections.impl.BitSet
_tokenSet_17
static antlr.collections.impl.BitSet
_tokenSet_18
static antlr.collections.impl.BitSet
_tokenSet_19
static antlr.collections.impl.BitSet
_tokenSet_2
static antlr.collections.impl.BitSet
_tokenSet_20
static antlr.collections.impl.BitSet
_tokenSet_21
static antlr.collections.impl.BitSet
_tokenSet_22
static antlr.collections.impl.BitSet
_tokenSet_23
static antlr.collections.impl.BitSet
_tokenSet_24
static antlr.collections.impl.BitSet
_tokenSet_25
static antlr.collections.impl.BitSet
_tokenSet_26
static antlr.collections.impl.BitSet
_tokenSet_27
static antlr.collections.impl.BitSet
_tokenSet_28
static antlr.collections.impl.BitSet
_tokenSet_29
static antlr.collections.impl.BitSet
_tokenSet_3
static antlr.collections.impl.BitSet
_tokenSet_30
static antlr.collections.impl.BitSet
_tokenSet_31
static antlr.collections.impl.BitSet
_tokenSet_32
static antlr.collections.impl.BitSet
_tokenSet_33
static antlr.collections.impl.BitSet
_tokenSet_34
static antlr.collections.impl.BitSet
_tokenSet_35
static antlr.collections.impl.BitSet
_tokenSet_36
static antlr.collections.impl.BitSet
_tokenSet_37
static antlr.collections.impl.BitSet
_tokenSet_38
static antlr.collections.impl.BitSet
_tokenSet_39
static antlr.collections.impl.BitSet
_tokenSet_4
static antlr.collections.impl.BitSet
_tokenSet_40
static antlr.collections.impl.BitSet
_tokenSet_5
static antlr.collections.impl.BitSet
_tokenSet_6
static antlr.collections.impl.BitSet
_tokenSet_7
static antlr.collections.impl.BitSet
_tokenSet_8
static antlr.collections.impl.BitSet
_tokenSet_9
-
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
-
Fields inherited from interface net.ontopia.topicmaps.utils.ctm.CTMParserTokenTypes
AKO, AT, COLON, COMMA, DATE, DATETIME, DECIMAL, DEF, ENCODING, END, EOF, EQUALS, HAT, HATHAT, HYPHEN, IDENTIFIER, INCLUDE, INFINITY, INTEGER, IRI, ISA, LEFTBRACKET, LEFTPAREN, MERGEMAP, NAMED_WILDCARD, NULL_TREE_LOOKAHEAD, ONEOH, PREFIX, QNAME, RIGHTBRACKET, RIGHTPAREN, SEMICOLON, SINGLE_QUOTED_STRING, STOP, TILDE, TRIPLE_QUOTED_STRING, VARIABLE, VERSION, WILDCARD, WRAPPED_IRI
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
a_kind_of()
void
argument()
void
association()
void
directive()
void
embedded_topic()
void
encoding_decl()
ParseContextIF
getContext()
void
include()
void
init()
void
instance_of()
void
iri_ref()
void
item_identifier()
void
item_identifier_add()
void
literal()
void
literal_iri_ref()
void
mergemap()
void
name()
void
occurrence()
void
prefix_decl()
void
property()
void
reifier()
void
role()
void
scope()
void
setBase(LocatorIF base)
void
setHandler(ParseEventHandlerIF handler, ParseContextIF context)
void
setTopicMap(TopicMapIF topicmap, ParseContextIF parent)
void
string()
void
subject_identifier()
void
subject_identifier_add()
void
subject_locator()
void
subject_locator_add()
void
template_body()
void
template_def()
void
template_invocation()
void
tm_reifier()
void
tolog_insert()
void
topic()
void
topic_identity()
void
topic_ref()
void
topicmap()
void
variant()
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
-
_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
-
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
-
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7
-
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
-
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9
-
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10
-
_tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_11
-
_tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_12
-
_tokenSet_13
public static final antlr.collections.impl.BitSet _tokenSet_13
-
_tokenSet_14
public static final antlr.collections.impl.BitSet _tokenSet_14
-
_tokenSet_15
public static final antlr.collections.impl.BitSet _tokenSet_15
-
_tokenSet_16
public static final antlr.collections.impl.BitSet _tokenSet_16
-
_tokenSet_17
public static final antlr.collections.impl.BitSet _tokenSet_17
-
_tokenSet_18
public static final antlr.collections.impl.BitSet _tokenSet_18
-
_tokenSet_19
public static final antlr.collections.impl.BitSet _tokenSet_19
-
_tokenSet_20
public static final antlr.collections.impl.BitSet _tokenSet_20
-
_tokenSet_21
public static final antlr.collections.impl.BitSet _tokenSet_21
-
_tokenSet_22
public static final antlr.collections.impl.BitSet _tokenSet_22
-
_tokenSet_23
public static final antlr.collections.impl.BitSet _tokenSet_23
-
_tokenSet_24
public static final antlr.collections.impl.BitSet _tokenSet_24
-
_tokenSet_25
public static final antlr.collections.impl.BitSet _tokenSet_25
-
_tokenSet_26
public static final antlr.collections.impl.BitSet _tokenSet_26
-
_tokenSet_27
public static final antlr.collections.impl.BitSet _tokenSet_27
-
_tokenSet_28
public static final antlr.collections.impl.BitSet _tokenSet_28
-
_tokenSet_29
public static final antlr.collections.impl.BitSet _tokenSet_29
-
_tokenSet_30
public static final antlr.collections.impl.BitSet _tokenSet_30
-
_tokenSet_31
public static final antlr.collections.impl.BitSet _tokenSet_31
-
_tokenSet_32
public static final antlr.collections.impl.BitSet _tokenSet_32
-
_tokenSet_33
public static final antlr.collections.impl.BitSet _tokenSet_33
-
_tokenSet_34
public static final antlr.collections.impl.BitSet _tokenSet_34
-
_tokenSet_35
public static final antlr.collections.impl.BitSet _tokenSet_35
-
_tokenSet_36
public static final antlr.collections.impl.BitSet _tokenSet_36
-
_tokenSet_37
public static final antlr.collections.impl.BitSet _tokenSet_37
-
_tokenSet_38
public static final antlr.collections.impl.BitSet _tokenSet_38
-
_tokenSet_39
public static final antlr.collections.impl.BitSet _tokenSet_39
-
_tokenSet_40
public static final antlr.collections.impl.BitSet _tokenSet_40
-
-
Constructor Detail
-
CTMParser
protected CTMParser(antlr.TokenBuffer tokenBuf, int k)
-
CTMParser
public CTMParser(antlr.TokenBuffer tokenBuf)
-
CTMParser
protected CTMParser(antlr.TokenStream lexer, int k)
-
CTMParser
public CTMParser(antlr.TokenStream lexer)
-
CTMParser
public CTMParser(antlr.ParserSharedInputState state)
-
-
Method Detail
-
setTopicMap
public void setTopicMap(TopicMapIF topicmap, ParseContextIF parent)
-
setHandler
public void setHandler(ParseEventHandlerIF handler, ParseContextIF context)
-
getContext
public ParseContextIF getContext()
-
setBase
public void setBase(LocatorIF base)
-
init
public void init()
-
topicmap
public final void topicmap() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
encoding_decl
public final void encoding_decl() 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
-
tm_reifier
public final void tm_reifier() 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
-
template_def
public final void template_def() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
topic_ref
public final void topic_ref() 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
-
template_invocation
public final void template_invocation() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
string
public final void string() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
prefix_decl
public final void prefix_decl() 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
-
mergemap
public final void mergemap() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
iri_ref
public final void iri_ref() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
topic_identity
public final void topic_identity() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
property
public final void property() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
item_identifier
public final void item_identifier() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
subject_locator
public final void subject_locator() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
subject_identifier
public final void subject_identifier() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
name
public final void name() 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
-
subject_locator_add
public final void subject_locator_add() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
item_identifier_add
public final void item_identifier_add() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
subject_identifier_add
public final void subject_identifier_add() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
instance_of
public final void instance_of() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
a_kind_of
public final void a_kind_of() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
scope
public final void scope() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
reifier
public final void reifier() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
variant
public final void variant() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
literal
public final void literal() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
role
public final void role() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
embedded_topic
public final void embedded_topic() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
literal_iri_ref
public final void literal_iri_ref() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
template_body
public final void template_body() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
tolog_insert
public final void tolog_insert() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
argument
public final void argument() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
-