Package eu.bandm.tools.d2d2.base
Class DocOnly
java.lang.Object
eu.bandm.tools.tdom.runtime.BaseVisitor
eu.bandm.tools.d2d2.absy.Visitor
eu.bandm.tools.d2d2.base.DocOnly
- All Implemented Interfaces:
PCDataVisitor
public class DocOnly
extends eu.bandm.tools.d2d2.absy.Visitor
A source file which only adds comments to existing modules.
Uses a subset of the ddf parsing rules, and is fed into the documentation generation
process of
Usage: create one fresh instance (no re-usage), invoke
Def2Doc3
.
Usage: create one fresh instance (no re-usage), invoke
fromFile(File)
,
invoke distribute(ModuleRegistry,String,boolean)
.
This will modify the
data of the (uninstalled) module contained in the ModuleRegistry.
(The code for parsing is just a modified subset of Reducer
.)
-
Field Summary
Modifier and TypeFieldDescription(package private) String
Visitor register.(package private) CheckedList<LocString>
Visitor register.protected String
protected File
static final String
protected Map<String,
Location<XMLDocumentIdentifier>> protected String
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>>
Fields inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
validating
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
distribute
(ModuleRegistry moduleReg, String key, boolean replace) protected void
error
(Location<XMLDocumentIdentifier> loc, String s) protected void
protected void
void
protected void
protected void
splitdoctext
(String text, Location<XMLDocumentIdentifier> startloc) void
visit
(eu.bandm.tools.d2d2.absy.Element_doctext element) void
visit
(eu.bandm.tools.d2d2.absy.Element_documentation element) <!ELEMENT documentation (ident, reflist?, (doctext | longdoctext)) >
void
visit
(eu.bandm.tools.d2d2.absy.Element_longdoctext element) void
visit
(eu.bandm.tools.d2d2.absy.Element_module element) protected void
warning
(Location<XMLDocumentIdentifier> loc, String s, Object... args) Methods inherited from class eu.bandm.tools.d2d2.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, 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
-
KEY_MODULE_DOC
- See Also:
-
msg
-
inputFile
-
fileName
-
moduleName
-
modLocations
-
dockey
String dockeyVisitor register. -
docs
CheckedList<LocString> docsVisitor register.
-
-
Constructor Details
-
DocOnly
-
-
Method Details
-
fromFile
-
error
-
error
-
error
-
warning
-
log
-
visit
public void visit(eu.bandm.tools.d2d2.absy.Element_module element) - Overrides:
visit
in classeu.bandm.tools.d2d2.absy.Visitor
-
visit
public void visit(eu.bandm.tools.d2d2.absy.Element_documentation element) <!ELEMENT documentation (ident, reflist?, (doctext | longdoctext)) >
- Overrides:
visit
in classeu.bandm.tools.d2d2.absy.Visitor
-
splitdoctext
-
visit
public void visit(eu.bandm.tools.d2d2.absy.Element_doctext element) - Overrides:
visit
in classeu.bandm.tools.d2d2.absy.Visitor
-
visit
public void visit(eu.bandm.tools.d2d2.absy.Element_longdoctext element) - Overrides:
visit
in classeu.bandm.tools.d2d2.absy.Visitor
-
distribute
-