public class Def2Doc3 extends Object
ResolvedModule
, as produced by
eu.bandm.tools.d2d2.base.Resover3
(new at 201060823).
#makeHtmlDoc(ModuleRegistry,Module,boolean,String,String,NamespaceName2String)
Modifier and Type | Class and Description |
---|---|
static class |
Def2Doc3.RefPainter_custom |
Constructor and Description |
---|
Def2Doc3(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
File generatedDir,
int lineWidth) |
Modifier and Type | Method and Description |
---|---|
protected String |
defi2anchor(DefInstance defi,
boolean isName) |
protected String |
defi2minUniqueName(DefInstance defi) |
protected String |
defi2tooltip(DefInstance defi) |
protected String |
defi2uniqueId(DefInstance defi) |
protected String |
defrw2minUniqueName(Definition def) |
protected String |
defrw2tooltip(Definition defrw) |
protected String |
dyn_module2anchor(Module mod,
boolean isName) |
protected void |
error(Exception ex,
String s) |
protected void |
error(Location<XMLDocumentIdentifier> loc,
String s) |
protected void |
error(String s) |
protected Element_block_content[] |
f_renderDocu(CheckedList<LocString> in,
String docu_ident) |
protected Element_block_content[] |
f_renderDocu(String docu_text,
String docu_ident) |
protected void |
failure(String s) |
protected String |
getCategory_short(DefInstance defi) |
protected String |
getCategory(Definition def)
NO MuLi support, since this is a TECHNICAL word which has to
be used as such, fixed by the grammar of definition modules,
idenpendently from locale.
|
static String |
getSuffix(String fname) |
static String |
joinAllDocStrings(CheckedList<LocString> list) |
protected void |
listUsage(DefInstance defi,
Definition defrw) |
protected void |
loadDocTextXsltTransformation()
Prepare the txsl application, see Batch.java:
|
protected void |
logEnd(String s) |
protected void |
logStart(String s) |
protected void |
makeDocuTable() |
protected void |
makeEnumTable(Enumeration def)
Generates a tabular visualisation of an enum, following the numerical values.
|
protected void |
makeHomonymList() |
void |
makeHtmlDoc(ModuleRegistry moduleRegistry,
ResolvedModule mod,
String targetcode,
String generationString,
NamespaceName2String stylesheetParams)
Make xhtml-documentation of one top module and its childs or imports.
|
protected void |
makeImportGraph() |
protected Element_a |
makeJumpTo(Definition def) |
protected Element_a |
makeJumpTo(DefInstance defi) |
protected void |
makeJumpToToc() |
protected void |
makeModuleTable() |
void |
makePngAndMap(DefInstance defi,
XRegExp def0)
Create one single graphic file containing the graphic
representation of the syntax of one single declaration.
|
protected void |
makePublicToplevelTagList() |
protected void |
makeTagList() |
protected void |
makeTagListEntry(String tag,
DefInstance defi,
List<Element_li> toclist) |
protected void |
markRawModule(Module mod) |
protected Element_tr.Choice_1_Alt_2 |
packTd(String s) |
protected void |
renderDocu(SourceItem item)
Convert the docu text for the given item, selected by the value of
targetcode from d2d source into xhtml. |
protected void |
renderModulesAndDefis()
Make the doc entry for one MODULE INSTANTIATION
Print a header,
print the module-related docu text, iff present in the selected language,
call
#renderOneDefInstance(String, Definition) 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) |
static String[] |
splitByFirst(String text) |
static Function<String,String> |
stringPrepend(String s0)
DISLOC FIXME to ops/Functions ??
|
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) |
protected void |
warning(String s) |
public static final String url_ddfdoc_js
public static final String resource_position_ddfdoc_js
public static final String local_copy_js
public static final String url_ddfdoc_css
public static final String resource_position_ddfdoc_css
public static final String local_copy_css
public static final String item_in_line_separator
public static final int erronuousExitCode
public static final String imageFormat
public static final String image_file_suffix
public static final String map_prefix
public static final String hashmark
public static final String prefix_local_anchor
public static final String classname_error
public static final String classname_defcategory_in_header
public static final String classname_defname_in_header
public static final String classname_modulename_in_header
public static final String classname_contextpath_in_header
public static final String classname_text_generic
public static final String classname_syntaxgraph_image
public static final String classname_enum_intconst
public static final String classname_enumtable
public static final String classname_nestedModuleTable
public static final String classname_footertext
public static final String classname_creationcommand
public static final String anchorname_toc
public static final String anchor_listOfDocEntries
public final String prefix_anchor_module
public final String prefix_anchor_declaration
public final String prefix_anchor_importitem
public static final Element_hr element_hr
public static final Element_br element_br
protected final Element_block_content[] emptyBC
protected final Element_tr.Choice_1_Alt_2 emptyTd
protected static final String docu_prefix
protected static final Text2Udom.ErrorStrategy docu_errorstrategy
protected DocTexts docTexts
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg
protected MessageReceiver<SimpleMessage<String>> msgMEMSTRING
protected File generatedDir
protected int lineWidth
public static int xml_lineWidth
protected ModuleRegistry moduleRegistry
protected ResolvedModule topModule
protected Module topModuleRaw
protected String topModuleName
protected String targetcode
protected String languagecode
protected NamespaceName2String stylesheetParams
protected final List<Element_block_content> bodysubs
protected final List<Element_li> toctoclist
protected Map<DefInstance,Definition> defi2rewritten
protected Multimap<String,DefInstance> tag2defi
protected Set<DefInstance> hasHomonyms
protected Multimap<Definition,Definition> uses
protected Element_img el_img_pcdata
protected final Function<Definition,String> getCategory
protected static final Function<Element_block_content,Element_td.Content> blockContent_2_tdContents
protected Function<Definition,String> def2anchor_false
public Def2Doc3(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, File generatedDir, int lineWidth)
msg
- MessageReceivergeneratedDir
- must exist as a directory, but should be empty.lineWidth
- for the printing of the re-constructed definition fragmentsprotected void error(String s)
protected void warning(String s)
protected void error(Location<XMLDocumentIdentifier> loc, String s)
protected void logStart(String s)
protected void logEnd(String s)
protected void failure(String s)
public static String joinAllDocStrings(CheckedList<LocString> list)
protected void loadDocTextXsltTransformation()
protected void renderDocu(SourceItem item)
targetcode
from d2d source into xhtml. Append the latter
to the growing list bodysubs
.protected Element_block_content[] f_renderDocu(CheckedList<LocString> in, String docu_ident)
protected Element_block_content[] f_renderDocu(String docu_text, String docu_ident)
public void makePngAndMap(DefInstance defi, XRegExp def0)
protected String getCategory(Definition def)
protected String getCategory_short(DefInstance defi)
protected void makeEnumTable(Enumeration def)
protected void listUsage(DefInstance defi, Definition defrw)
protected Element_a makeJumpTo(Definition def)
protected Element_a makeJumpTo(DefInstance defi)
protected void makeJumpToToc()
protected String dyn_module2anchor(Module mod, boolean isName)
isName
- if it is the DEFINING "a"-element, not a refering one.protected String defrw2minUniqueName(Definition def)
protected String defi2minUniqueName(DefInstance defi)
protected String defi2uniqueId(DefInstance defi)
isName
- if it is the DEFINING "a"-element, not a refering one.protected String defi2anchor(DefInstance defi, boolean isName)
isName
- if it is the DEFINING "a"-element, not a refering one.protected String defrw2tooltip(Definition defrw)
protected String defi2tooltip(DefInstance defi)
public static Function<String,String> stringPrepend(String s0)
protected void makePublicToplevelTagList()
protected void makeTagList()
protected void makeHomonymList()
protected void makeTagListEntry(String tag, DefInstance defi, List<Element_li> toclist)
protected void makeModuleTable()
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)
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 packTd(String s)
protected void makeDocuTable()
protected void makeImportGraph()
protected void renderOneDefInstance(String modulename, DefInstance defi)
protected void renderModulesAndDefis()
#renderOneDefInstance(String, Definition)
for all defs which
are reachable from the top module's definitions.
protected void markRawModule(Module mod)
public void makeHtmlDoc(ModuleRegistry moduleRegistry, ResolvedModule mod, String targetcode, String generationString, NamespaceName2String stylesheetParams)
mod
- the loaded module, either raw or instantiatedtargetcode
- the documentation key for doc-texts from the module's
source file to include.generationString
- the text for the footerstylesheetParams
- the usual xslt parameters for "d2d_gp to_xhtml_1_0"see also the complete user documentation .