Package eu.bandm.tools.xantlr
Class DTDGenerator
java.lang.Object
antlr.TreeParser
eu.bandm.tools.xantlr.DTDGenerator
- All Implemented Interfaces:
ANTLRFilter
,DTDGeneratorTokenTypes
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String[]
(package private) ContentBuilder
(package private) final List
(package private) String
(package private) HashMap<String,
DTD.ContentModel> (package private) DTD.Dtd
(package private) final Map<String,
DTD.AttDef> (package private) XmlRepresentation
(package private) XmlRepresentationFilter
protected MessageReceiver<? super SimpleMessage>
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
Fields inherited from interface eu.bandm.tools.xantlr.DTDGeneratorTokenTypes
ACTION, Alternative, ARG_ACTION, ASSIGN, BANG, CARET, CHAR_LITERAL, CharSet, ClassDef, CLOSE_ELEMENT_OPTION, COLON, COMMA, COMMENT, DIGIT, DOC_COMMENT, Element, EOF, ESC, Grammar, IMPLIES, INT, INTERNAL_RULE_REF, LastInRule, LITERAL_catch, LITERAL_charVocabulary, LITERAL_class, LITERAL_exception, LITERAL_extends, LITERAL_header, LITERAL_lexclass, LITERAL_Lexer, LITERAL_options, LITERAL_Parser, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_returns, LITERAL_throws, LITERAL_tokens, LITERAL_TreeParser, LPAREN, ML_COMMENT, NESTED_ACTION, NESTED_ARG_ACTION, NOT_OP, NULL_TREE_LOOKAHEAD, OPEN_ELEMENT_OPTION, OPTIONS, OR, PLUS, QUESTION, RANGE, RCURLY, RPAREN, Rule, RULE_REF, SEMI, SEMPRED, SL_COMMENT, STAR, STRING_LITERAL, SuperClass, TOKEN_REF, TOKENS, TokensSpecOptions, TREE_BEGIN, WILDCARD, WS, WS_LOOP, WS_OPT, XDIGIT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
alternative
(antlr.collections.AST _t) final void
ast_type_spec
(antlr.collections.AST _t) final void
block
(antlr.collections.AST _t) final void
charSet
(antlr.collections.AST _t) final void
classDef
(antlr.collections.AST _t) final void
ebnf
(antlr.collections.AST _t) final void
element
(antlr.collections.AST _t) final void
elementNoOptionSpec
(antlr.collections.AST _t) final void
elementOptionSpec
(antlr.collections.AST _t) final void
exceptionGroup
(antlr.collections.AST _t) final void
exceptionHandler
(antlr.collections.AST _t) final void
exceptionSpec
(antlr.collections.AST _t) final void
exceptionSpecNoLabel
(antlr.collections.AST _t) final void
fileOptionsSpec
(antlr.collections.AST _t) final void
grammar
(antlr.collections.AST _t) final void
id
(antlr.collections.AST _t) final void
lexerOptionsSpec
(antlr.collections.AST _t) final void
lexerSpec
(antlr.collections.AST _t) final void
notTerminal
(antlr.collections.AST _t) final void
optionValue
(antlr.collections.AST _t) final void
parserOptionsSpec
(antlr.collections.AST _t) final void
parserSpec
(antlr.collections.AST _t) protected final void
processRule
(antlr.collections.AST _t) final void
qualifiedID
(antlr.collections.AST _t) final void
range
(antlr.collections.AST _t) final void
rootNode
(antlr.collections.AST _t) final void
rule
(antlr.collections.AST _t) final void
ruleOptionsSpec
(antlr.collections.AST _t) final void
rules
(antlr.collections.AST _t) final void
setBlockElement
(antlr.collections.AST _t) void
setFilter
(XmlRepresentationFilter filter) void
setMessageReceiver
(MessageReceiver<? super SimpleMessage> msg) final void
subruleOptionsSpec
(antlr.collections.AST _t) final void
superClass
(antlr.collections.AST _t) final void
terminal
(antlr.collections.AST _t) final void
tokensSpec
(antlr.collections.AST _t) final void
tokensSpecOptions
(antlr.collections.AST _t) final void
tree
(antlr.collections.AST _t) final void
treeParserOptionsSpec
(antlr.collections.AST _t) final void
treeParserSpec
(antlr.collections.AST _t) Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.xantlr.ANTLRFilter
getAST
-
Field Details
-
msg
-
filter
XmlRepresentationFilter filter -
currentClass
String currentClass -
currentXml
XmlRepresentation currentXml -
currentDTD
DTD.Dtd currentDTD -
currentContent
HashMap<String,DTD.ContentModel> currentContent -
contentBuilder
ContentBuilder contentBuilder -
currentRules
-
currentRulesDone
-
currentRulesOrder
-
currentEnums
-
currentAtts
-
usedPrefixes
-
_tokenNames
-
-
Constructor Details
-
DTDGenerator
public DTDGenerator()
-
-
Method Details
-
setMessageReceiver
-
setFilter
-
classDef
public final void classDef(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
lexerSpec
public final void lexerSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
treeParserSpec
public final void treeParserSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
parserSpec
public final void parserSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
rules
public final void rules(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
id
public final void id(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
superClass
public final void superClass(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
parserOptionsSpec
public final void parserOptionsSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
tokensSpec
public final void tokensSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
lexerOptionsSpec
public final void lexerOptionsSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
treeParserOptionsSpec
public final void treeParserOptionsSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
rule
public final void rule(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
processRule
protected final void processRule(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
ruleOptionsSpec
public final void ruleOptionsSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
block
public final void block(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
exceptionGroup
public final void exceptionGroup(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
alternative
public final void alternative(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
element
public final void element(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
exceptionSpecNoLabel
public final void exceptionSpecNoLabel(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
elementNoOptionSpec
public final void elementNoOptionSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
range
public final void range(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
terminal
public final void terminal(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
notTerminal
public final void notTerminal(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
ebnf
public final void ebnf(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
tree
public final void tree(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
subruleOptionsSpec
public final void subruleOptionsSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
grammar
public final void grammar(antlr.collections.AST _t) throws antlr.RecognitionException - Specified by:
grammar
in interfaceANTLRFilter
- Throws:
antlr.RecognitionException
-
fileOptionsSpec
public final void fileOptionsSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
optionValue
public final void optionValue(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
charSet
public final void charSet(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
qualifiedID
public final void qualifiedID(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
setBlockElement
public final void setBlockElement(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
tokensSpecOptions
public final void tokensSpecOptions(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
exceptionSpec
public final void exceptionSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
exceptionHandler
public final void exceptionHandler(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
elementOptionSpec
public final void elementOptionSpec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
rootNode
public final void rootNode(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-
ast_type_spec
public final void ast_type_spec(antlr.collections.AST _t) throws antlr.RecognitionException - Throws:
antlr.RecognitionException
-