Class UserdocInstantiated
ResolvedModule
, as produced by
Resolver4
Usage:
(1) Create fresh instance
(2) call main entry method makeHtmlDoc()
(3) Then the directory (specified in (1)) will be filled with
main "index.html" and many "*.png", etc.
The generated xhtml has the following structure
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
Collect which definition uses which.Nested classes/interfaces inherited from class eu.bandm.tools.d2d2.base.Userdoc
Userdoc.RefPainter_custom
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<DefInstance,
Definition> protected Set<DefInstance>
Contains all instantiated definitions which have homonyms in some other module instantiation.protected final boolean
protected Multimap<String,
DefInstance> protected final ResolvedModule
protected final String
Name without Resolver3.rootModuleExpandedSuffix = "$expanded" .protected final Module
protected Multimap<Definition,
Definition> Maps all definitions (=on the left side) to those referred to by references in their expression )=on the right side).Fields inherited from class eu.bandm.tools.d2d2.base.Userdoc
anchorname_listOfHomonyms, anchorname_toc, bigLogo, bodysubs, classname_alert, classname_contextpath_in_header, classname_creationcommand, classname_defcategory_in_header, classname_defname_in_header, classname_docuSurveyTable, classname_enum_intconst, classname_enumtable, classname_footertext, classname_import_recursive, classname_import_relevant, classname_import_repeat, classname_modulename_as_header_in_list, classname_modulename_in_header, classname_nestedModuleTable, classname_syntaxgraph_image, classname_text_generic, color_syntaxGraph_background_dynamic, color_syntaxGraph_background_static, docTexts, docTextXsltTransformation, docTextXsltTransformationLoaded, docu_errorstrategy, docu_prefix, el_img_pcdata, filename_contentGraph, filename_htmldoc, functionLibrary, generatedDir, generationString, hrefTooltipAlt, html_repr_empty, image_file_suffix, imageFormat, indicateGENERIC, item_in_line_separator, jumpToToc, languagecode, lineWidth, local_copy_css, local_copy_js, map_prefix, mapname_contentGraph, moduleRegistry, msg, msgMEMSTRING, prefix_anchor_definition, prefix_anchor_importitem, prefix_anchor_module, resource_position_ddfdoc_css, resource_position_ddfdoc_js, stylesheetParams, target_module_name, target_top_tag, targetcode, toctoclist, warnGeneric, xml_lineWidth
-
Constructor Summary
ConstructorDescriptionUserdocInstantiated
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int debuglevel, File generatedDir, int lineWidth, ModuleRegistry moduleRegistry, ResolvedModule mod, String targetcode, String generationString, NamespaceName2String stylesheetParams) Only constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected String
defi2anchor
(DefInstance defi, boolean isName) protected String
protected String
defi2tooltip
(DefInstance defi) protected String
defi2uniqueId
(DefInstance defi) DOCMEprotected String
protected String
defrw2tooltip
(Definition defrw) protected String
dyn_module2anchor
(Module mod, boolean isName) Href text to jump to a module.protected void
getHrefTooltipAlt
(Reference ref, String[] result) Callback method to deliver these three values for the graphic rendering of the given reference.protected void
listUsage
(Definition defrw) (package private) static Element_a
Make an anchor as jump target, without any visible contents.protected void
void
Make xhtml-documentation of one resolved d2d definition module (= top module) and all of its imported definitions.protected void
protected Element_a
makeJumpTo
(Definition def) protected Element_a
makeJumpTo
(DefInstance defi) protected void
Render the survey on all module import statements.protected void
protected void
protected void
makeTagListEntry
(String tag, DefInstance defi, List<Element_li> toclist) Make one line for each tag in some initial "tag list".protected void
markRawModule
(Module mod) protected void
Make all doc entries for one MODULE INSTANTIATION Print a header, print the module-related docu text, iff present in the selected language, callrenderOneDefInstance(String, DefInstance)
for all defs which are reachable from the top module's definitions.protected void
renderOneDefInstance
(String modulename, DefInstance defi) Make the doc entry for one (INSTANTIATED) DECLARATION.protected void
showModuleImports
(int indent, String prefix, Module rawModule, List<Element_tr> akku, Set<Module> done, Set<Module> active) protected Element_tr.Choice_1_Alt_2
td_textAndClass
(String text, String cls) protected Element_tr.Choice_1_Alt_2
td_textClassJump
(String text, String cls, String href, boolean defining) Methods inherited from class eu.bandm.tools.d2d2.base.Userdoc
addJumpToToc, anchor, anchor, anchor, anchor, copyResource, do_renderDocu, error, error, error, f_renderDocu, failure, getRenderedDocu, joinAllDocStrings, jump, jump, jump, jump, jumpName, loadDocTextXsltTransformation, make_h2_with_aname, make_li_text_localhref, makeDocuTable, makeEnumTable, makePngAndMap, makePngAndMap, mtext, mtext, packTd, packTd, renderDocu, showCategory_long, showCategory_short, splitWithAlerts, warning
-
Field Details
-
topModule
-
topModuleRaw
-
hasImports
protected final boolean hasImports -
topModuleName
Name without Resolver3.rootModuleExpandedSuffix = "$expanded" . -
allRawModules
-
allRawModulesSorted
-
defi2rewritten
-
tag2defi
-
hasHomonyms
Contains all instantiated definitions which have homonyms in some other module instantiation. -
uses
Maps all definitions (=on the left side) to those referred to by references in their expression )=on the right side).
-
-
Constructor Details
-
UserdocInstantiated
public UserdocInstantiated(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int debuglevel, File generatedDir, int lineWidth, ModuleRegistry moduleRegistry, ResolvedModule mod, String targetcode, String generationString, NamespaceName2String stylesheetParams) Only constructor- Parameters:
msg
- MessageReceiverdebuglevel
- from 0 to 100, seeModuleRegistry#setTracelevel()
.generatedDir
- must exist as a directory, but should be empty.lineWidth
- for the printing of the re-constructed definition fragments
-
-
Method Details
-
getHrefTooltipAlt
Description copied from class:Userdoc
Callback method to deliver these three values for the graphic rendering of the given reference.- Specified by:
getHrefTooltipAlt
in classUserdoc
-
listUsage
-
makeJumpTo
-
makeJumpTo
-
make_a
Make an anchor as jump target, without any visible contents. -
dyn_module2anchor
Href text to jump to a module.- Parameters:
isName
- iff it is for a DEFINING "a"-element, not a refering one.
-
defrw2minUniqueName
-
defi2minUniqueName
-
defi2uniqueId
DOCME -
defi2anchor
- Parameters:
isName
- if it is the DEFINING "a"-element, not a refering one.
-
defrw2tooltip
-
defi2tooltip
-
makePublicToplevelTagList
protected void makePublicToplevelTagList() -
makeTagList
protected void makeTagList() -
makeHomonymList
protected void makeHomonymList() -
makeTagListEntry
Make one line for each tag in some initial "tag list". -
makeModuleTable
protected void makeModuleTable()Render the survey on all module import statements. This is a two-column table with the stack of import prefixes mapped to source module (hierarchical) names. -
td_textAndClass
-
td_textClassJump
protected Element_tr.Choice_1_Alt_2 td_textClassJump(String text, String cls, String href, boolean defining) -
showModuleImports
-
makeImportGraph
protected void makeImportGraph() -
renderOneDefInstance
Make the doc entry for one (INSTANTIATED) DECLARATION.- Print a header,
- print the related docu text, iff present in the selected language,
- print an enum table or a syntax graph
- list cross-ref of usage
- list homonyms
-
renderModulesAndDefis
protected void renderModulesAndDefis()Make all doc entries for one MODULE INSTANTIATION- Print a header,
- print the module-related docu text, iff present in the selected language,
- call
renderOneDefInstance(String, DefInstance)
for all defs which are reachable from the top module's definitions. - emit survey tables (doc texts, import statements)
- finally print a footer
-
markRawModule
-
makeHtmlDoc
public void makeHtmlDoc()Make xhtml-documentation of one resolved d2d definition module (= top module) and all of its imported definitions. The result is one single "index.html" page, with header and table of contents and registers, and many "*.png"s The target directory for all these has been defined when constructiong this instance.The MuLi-translations are pre-compiled into DocTexts.
- Specified by:
makeHtmlDoc
in classUserdoc
-