public abstract class AbstractProcessor extends java.lang.Object
Constructor and Description |
---|
AbstractProcessor() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
adaptSections(java.lang.String documentation,
int rootLevel) |
protected void |
addModule(ModuleDocumentation module) |
java.nio.file.Path |
docFile(DocumentationElement doc)
Return the absolute path of the file containing the given element.
|
protected java.lang.String |
fileExtension() |
java.util.Set<java.util.Map.Entry<java.lang.String,java.util.Set<ModuleDocumentation>>> |
getPackages() |
protected java.util.Set<ModuleDocumentation> |
getSubmodulesOf(ModuleDocumentation doc) |
java.nio.file.Path |
getTargetFolder() |
java.lang.String |
linkToFile(DocumentationElement src,
java.lang.String dst)
Returns the link to the given filename from the given document.
|
java.lang.String |
linkToFile(java.lang.String src,
java.lang.String dst)
Returns the link to the given filename from the given filename.
|
java.util.Set<ModuleDocumentation> |
modules() |
java.nio.file.Path |
outputFile(java.lang.String name) |
abstract void |
process(java.util.Collection<ModuleDocumentation> modules,
java.nio.file.Path targetFolder) |
abstract java.lang.String |
render(ModuleDocumentation module) |
protected void |
renderIndex(java.lang.String templateName) |
void |
setTargetFolder(java.nio.file.Path target) |
protected FunctionReference |
template(java.lang.String name,
java.lang.String format) |
public AbstractProcessor()
public abstract java.lang.String render(ModuleDocumentation module) throws java.lang.Throwable
java.lang.Throwable
public abstract void process(java.util.Collection<ModuleDocumentation> modules, java.nio.file.Path targetFolder) throws java.lang.Throwable
java.lang.Throwable
public void setTargetFolder(java.nio.file.Path target)
public java.nio.file.Path getTargetFolder()
public java.util.Set<ModuleDocumentation> modules()
protected void addModule(ModuleDocumentation module)
protected java.util.Set<ModuleDocumentation> getSubmodulesOf(ModuleDocumentation doc)
public java.util.Set<java.util.Map.Entry<java.lang.String,java.util.Set<ModuleDocumentation>>> getPackages()
protected java.lang.String fileExtension()
protected FunctionReference template(java.lang.String name, java.lang.String format) throws java.io.IOException
java.io.IOException
public java.nio.file.Path outputFile(java.lang.String name)
public java.nio.file.Path docFile(DocumentationElement doc)
public java.lang.String linkToFile(DocumentationElement src, java.lang.String dst)
public java.lang.String linkToFile(java.lang.String src, java.lang.String dst)
protected void renderIndex(java.lang.String templateName) throws java.lang.Throwable
java.lang.Throwable
public static java.lang.String adaptSections(java.lang.String documentation, int rootLevel)