public class Def2Doc extends Object
makeHtmlDoc(ModuleRegistry,Module,boolean,String,String,NamespaceName2String)
Modifier and Type | Class and Description |
---|---|
static class |
Def2Doc.RefPainter_custom |
Constructor and Description |
---|
Def2Doc(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
File generatedDir) |
Modifier and Type | Method and Description |
---|---|
protected String |
dyn_def2anchor(Definition def,
boolean isName) |
protected String |
dyn_fullname(Definition def)
Get the name of the definition w.r.t.
|
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(Location<XMLDocumentIdentifier> location,
String docIdent,
CheckedMap_RD<String,CheckedList<LocString>> map)
Convert the docu text for the item (according to the value of
targetcode) from d2d source into xhtml.
|
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) |
protected String |
joinAllDocStrings(CheckedList<LocString> list) |
protected void |
listHomonyms(String tag,
Definition def) |
protected void |
listUsage(Definition def) |
static void |
main(String[] args)
PROVISONALLY test purpose definitions :
args[0] is the module name, args[1] if static or dynamic args[2] the language code args[3] the output directory name args[4] the prj source tree (for finding "doctypes" with the ddf sources) |
protected void |
makeDynDefDoc(String modulename,
Definition def)
Make the doc entry for one (INSTANTIATED) DECLARATION.
|
protected void |
makeDynDoc()
Analyze and generate documentation for one instantiated module:
collect sll declarations referred to from ALL declarations in
the top-level module.
|
protected void |
makeDynModuleDocs()
Make the doc entry for one MODULE INSTANTIATION
Print a header,
print the module-related docu text, iff present in the selected language,
call
makeDynDefDoc(String, Definition) for all defs which
are reachable from the top module's definitions. |
protected void |
makeDynTocs()
Makes
List of the following ToCs.
|
protected void |
makeEnumTable(Enumeration def)
Generates a tabular visualisation of an enum, following the numerical values.
|
void |
makeHtmlDoc(ModuleRegistry modreg,
Module mod,
boolean dynamic,
String targetcode,
String generationString,
NamespaceName2String stylesheetParams)
Make xhtml-documentation of one top module and its childs or imports.
|
protected Element_a |
makeJumpTo(Definition def) |
protected void |
makeJumpToToc() |
void |
makePngAndMap(XRegExp def0)
Create one single graphic file containing the graphic
representation of the syntax of one single declaration.
|
protected Element_ul |
makeSortedListOfDefinitions(Set<Definition> defs) |
protected void |
makeStaticDoc()
In the static case the references are NOT resolved.
|
protected void |
renderDocu(SourceItem item)
Convert the docu text for the item (according to the value of
targetcode) from d2d source into xhtml.
|
static Element_span |
spanCC(String classname,
String content)
Creates a simple html-span with a certain css-class and only character data.
|
static String[] |
splitByFirst(String text) |
static Function<String,String> |
stringPrepend(String s0)
DISLOC FIXME to ops/Functions ??
|
protected void |
warning(String s) |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg
protected MessageReceiver<SimpleMessage<String>> msgMEMSTRING
protected ModuleRegistry moduleReg
protected File generatedDir
protected Module topModule
protected String targetcode
protected String languagecode
protected boolean dynamic
protected NamespaceName2String stylesheetParams
protected DocTexts docTexts
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 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_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
protected Element_img el_img_pcdata
protected static final String docu_prefix
protected static final Text2Udom.ErrorStrategy docu_errorstrategy
protected Multimap<String,Definition> tag2Def
protected Multimap<SourceItem,String> sourceItem2docu
protected Multimap<String,Module> rawModule2instantiated
protected Map<Module,String> module2moduleName
protected Multimap<Definition,Definition> usedIn
protected Multimap<Definition,Definition> genericRefs
protected final Element_block_content[] emptyBC
protected final Function<Definition,String> getCategory
protected static final Function<Element_block_content,Element_td.Content> blockContent_2_tdContents
protected Function<Definition,String> dyn_fullname
protected Function<Definition,String> dyn_def2anchor_false
public Def2Doc(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, File generatedDir)
msg
- MessageReceivergeneratedDir
- must exist as a directory, but should be empty.protected void error(String s)
protected void warning(String s)
protected void error(Location<XMLDocumentIdentifier> loc, String s)
public static Element_span spanCC(String classname, String content)
protected String joinAllDocStrings(CheckedList<LocString> list)
protected void renderDocu(SourceItem item)
protected Element_block_content[] f_renderDocu(Location<XMLDocumentIdentifier> location, String docIdent, CheckedMap_RD<String,CheckedList<LocString>> map)
public void makePngAndMap(XRegExp def0)
protected String getCategory(Definition def)
protected void makeEnumTable(Enumeration def)
protected void listUsage(Definition def)
protected void listHomonyms(String tag, Definition def)
protected Element_a makeJumpTo(Definition def)
protected void makeJumpToToc()
protected void makeStaticDoc()
protected String dyn_module2anchor(Module mod, boolean isName)
isName
- if it is the DEFINING "a"-element, not a refering.protected String dyn_def2anchor(Definition def, boolean isName)
isName
- if it is the DEFINING "a"-element, not a refering.protected String dyn_fullname(Definition def)
public static Function<String,String> stringPrepend(String s0)
protected Element_ul makeSortedListOfDefinitions(Set<Definition> defs)
protected void makeDynTocs()
protected void makeDynDefDoc(String modulename, Definition def)
protected void makeDynModuleDocs()
makeDynDefDoc(String, Definition)
for all defs which
are reachable from the top module's definitions.
protected void makeDynDoc()
public void makeHtmlDoc(ModuleRegistry modreg, Module mod, boolean dynamic, String targetcode, String generationString, NamespaceName2String stylesheetParams)
mod
- the loaded module, either raw or instantiateddynamic
- =true indicates instantiated casetargetcode
- 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"public static void main(String[] args)
see also the complete user documentation .