Package eu.bandm.tools.d2d2.base
Class UserdocInstantiated
java.lang.Object
eu.bandm.tools.d2d2.base.Userdoc
eu.bandm.tools.d2d2.base.UserdocInstantiated
Create Xhtml documentation of a 
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
      [fileHeader]         [=H1]  
      [list of contents]
         containing [listOfModules]           __TOC__    = anchorname_toc
      [preamble]  
      [listOfPublicTags]   [=H2]              __TOC__listOfPublicTags
      [elementsUsesGraph   [=H2]
      [ListOfAllTags]      [=H2]              __TOC__listOfTags
      [ListOfTagHomonyms]  [=H2]              __TOC__listOfHomonyms
          per Module:                         __MODULE__ 
          [moduleHeader]    [=H2]             
          [docText]
             per DefinitionInstanceRepresentation
             [defiHeader]                     __DEFINITION_...
             [syntaxGraph]
             [reconstructedSourceText]
             [usedIn]
             [homonyms]
             [sourcePos]
             [xmlRepresentation]
      [allImportStacks]     [=H2]             __TOC__moduleTable
      [allDocuEntries]      [=H2]             __TOC__docEntries
           per importContext                  __IMPORTITEM__...
      [generationFooter]
  - 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classCollect which definition uses which.Nested classes/interfaces inherited from class eu.bandm.tools.d2d2.base.Userdoc
Userdoc.RefPainter_custom - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<DefInstance, Definition> protected Set<DefInstance> Contains all instantiated definitions which have homonyms in some other module instantiation.protected final booleanprotected Multimap<String, DefInstance> protected final ResolvedModuleprotected final StringName without Resolver3.rootModuleExpandedSuffix = "$expanded" .protected final Moduleprotected 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, dateAndTime, docTexts, docTextXsltTransformation, docTextXsltTransformationLoaded, docu_errorstrategy, docu_prefix, el_img_pcdata, filename_contentGraph, filename_xhtmldoc, 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
ConstructorsConstructorDescriptionUserdocInstantiated(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int debuglevel, File generatedDir, int lineWidth, ModuleRegistry moduleRegistry, ResolvedModule mod, String targetcode, String generationString, String dateAndTime, NamespaceName2String stylesheetParams) Only constructor - 
Method Summary
Modifier and TypeMethodDescriptionprotected Stringdefi2anchor(DefInstance defi, boolean isName) protected Stringprotected Stringdefi2tooltip(DefInstance defi) protected Stringdefi2uniqueId(DefInstance defi) DOCMEprotected Stringprotected Stringdefrw2tooltip(Definition defrw) protected Stringdyn_module2anchor(Module mod, boolean isName) Href text to jump to a module.protected voidgetHrefTooltipAlt(Reference ref, String[] result) Callback method to deliver these three values for the graphic rendering of the given reference.protected voidlistUsage(Definition defrw) (package private) static Element_aMake an anchor as jump target, without any visible contents.protected voidvoidMake xhtml-documentation of one resolved d2d definition module (= top module) and all of its imported definitions.protected voidprotected Element_amakeJumpTo(Definition def) protected Element_amakeJumpTo(DefInstance defi) protected voidRender the survey on all module import statements.protected voidprotected voidprotected voidmakeTagListEntry(String tag, DefInstance defi, List<Element_li> toclist) Make one line for each tag in some initial "tag list".protected voidmarkRawModule(Module mod) protected voidMake 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 voidrenderOneDefInstance(String modulename, DefInstance defi) Make the doc entry for one (INSTANTIATED) DECLARATION.protected voidshowModuleImports(int indent, String prefix, Module rawModule, List<Element_tr> akku, Set<Module> done, Set<Module> active) protected Element_tr.Choice_1_Alt_2td_textAndClass(String text, String cls) protected Element_tr.Choice_1_Alt_2td_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, String dateAndTime, NamespaceName2String stylesheetParams) Only constructor- Parameters:
 msg- MessageReceiverdebuglevel- from 0 to 100, seeModuleRegistry.setTracelevel(int).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:UserdocCallback method to deliver these three values for the graphic rendering of the given reference.- Specified by:
 getHrefTooltipAltin 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 constructing this instance.The MuLi-translations are pre-compiled into DocTexts.
- Specified by:
 makeHtmlDocin classUserdoc
 
 -