Package eu.bandm.tools.option
Class Compiler.Phase_enum
java.lang.Object
eu.bandm.tools.tdom.runtime.BaseVisitor
eu.bandm.tools.option.absy.Visitor
eu.bandm.tools.option.Compiler.Phase_enum
- All Implemented Interfaces:
PCDataVisitor
- Enclosing class:
- Compiler
Zeroth phase, collect and generate code for enumerations.
glo out enums, enumsWithDocText, enumsWithItemDocText, enumClasses.
-
Field Summary
Modifier and TypeFieldDescription(package private) GeneratedClass
Class generated for the enumeration currently under visit.When visiting an Element_desc: Name of the containing enumeration item.(package private) StringBuilder
Lives during the visit of one enumeration and collects the lines user infos.Fields inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
validating
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(Element_comment element) Do NOT descend!void
visit
(Element_enumeration element) Analyse the visited enumeration and descend into its sub-elements.void
visit
(Element_option element) Do NOT descend!void
visit
(Element_printout_title element) Do NOT descend!void
visit
(Element_text el) Memorize description text for gui tool-tips.Methods inherited from class eu.bandm.tools.option.absy.Visitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
Methods inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
visit
-
Field Details
-
sb
Lives during the visit of one enumeration and collects the lines user infos. -
currentEnum
GeneratedClass currentEnumClass generated for the enumeration currently under visit. -
currentEnumItemName
When visiting an Element_desc: Name of the containing enumeration item. or null if desc belongs to enumeration itself.
-
-
Constructor Details
-
Phase_enum
protected Phase_enum()
-
-
Method Details
-
visit
Analyse the visited enumeration and descend into its sub-elements. Collect payload-level user information and add comments to the generated objects and to the usage() code. -
visit
Do NOT descend! -
visit
Do NOT descend! -
visit
Do NOT descend! -
visit
Memorize description text for gui tool-tips. Element_comment, Element_option etc. are ALL skipped, Visitor comes here only from Element_enumeration or Element_enum_item
-