public class ModuleDocumentation extends java.lang.Object implements DocumentationElement
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<org.eclipse.golo.doc.AugmentationDocumentation> |
augmentations() |
java.lang.String |
documentation()
The documentation comment for the element.
|
static ModuleDocumentation |
empty(java.lang.String name) |
java.lang.String |
fullName()
The fully qualified named of the element.
|
java.util.SortedSet<org.eclipse.golo.doc.FunctionDocumentation> |
functions() |
java.util.SortedSet<org.eclipse.golo.doc.FunctionDocumentation> |
functions(boolean withLocal) |
java.lang.String |
goloVersion() |
java.lang.String |
id()
A unique identifier for the element.
|
java.util.Map<java.lang.String,java.lang.Integer> |
imports() |
boolean |
isEmpty() |
java.lang.String |
label()
A readable representation of the element.
|
int |
line()
The line where the element is defined.
|
static ModuleDocumentation |
load(java.lang.String filename,
GoloCompiler compiler) |
int |
moduleDefLine() |
java.lang.String |
moduleDocumentation() |
ModuleDocumentation |
moduleDocumentation(java.lang.String doc) |
java.lang.String |
moduleName() |
java.util.Map<java.lang.String,java.lang.Integer> |
moduleStates() |
java.lang.String |
name()
The simple name of the element.
|
java.util.Collection<org.eclipse.golo.doc.NamedAugmentationDocumentation> |
namedAugmentations() |
java.lang.String |
packageName() |
DocumentationElement |
parent()
The parent element.
|
java.lang.String |
sourceFile() |
java.util.SortedSet<org.eclipse.golo.doc.StructDocumentation> |
structs() |
java.lang.String |
type()
A readable name for the kind of element.
|
java.util.SortedSet<org.eclipse.golo.doc.UnionDocumentation> |
unions() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTo, hasDocumentationpublic java.lang.String type()
type in interface DocumentationElementpublic static ModuleDocumentation load(java.lang.String filename, GoloCompiler compiler) throws java.io.IOException
java.io.IOExceptionpublic static ModuleDocumentation empty(java.lang.String name)
public boolean isEmpty()
public java.lang.String goloVersion()
public java.util.SortedSet<org.eclipse.golo.doc.StructDocumentation> structs()
public java.util.SortedSet<org.eclipse.golo.doc.UnionDocumentation> unions()
public java.util.SortedSet<org.eclipse.golo.doc.FunctionDocumentation> functions()
public java.util.SortedSet<org.eclipse.golo.doc.FunctionDocumentation> functions(boolean withLocal)
public java.lang.String sourceFile()
public java.lang.String moduleName()
public java.lang.String packageName()
public java.lang.String label()
Typically the name, but can also contains argument names for functions for instance.
label in interface DocumentationElementpublic java.lang.String name()
name in interface DocumentationElementpublic java.lang.String fullName()
Typically, the parent full name and the element name.
fullName in interface DocumentationElementpublic java.lang.String id()
Can be used in html ID for instance.
id in interface DocumentationElementpublic DocumentationElement parent()
For toplevel element, this is the module. For functions, it can be the augmentation. For union values, it is the union.
parent in interface DocumentationElementpublic int moduleDefLine()
public int line()
line in interface DocumentationElementpublic java.lang.String moduleDocumentation()
public ModuleDocumentation moduleDocumentation(java.lang.String doc)
public java.lang.String documentation()
documentation in interface DocumentationElementpublic java.util.Map<java.lang.String,java.lang.Integer> moduleStates()
public java.util.Collection<org.eclipse.golo.doc.AugmentationDocumentation> augmentations()
public java.util.Collection<org.eclipse.golo.doc.NamedAugmentationDocumentation> namedAugmentations()
public java.util.Map<java.lang.String,java.lang.Integer> imports()