|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.vergil.actor.DocBuilder
public class DocBuilder
Build Documentation for Java and Actors.
This class sets the commands that build the Java classes.
| Yellow (eal) |
| Yellow (eal) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary | |
|---|---|
private Configuration |
_configuration
The configuration in which we look up the _applicationName and _docApplicationSpecializer parameters. |
private ExecuteCommands |
_executeCommands
The object that actually executes the commands. |
Parameter |
cleanFirst
If true, then clean before building documentation. |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
|---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
|---|---|
DocBuilder(NamedObj container,
java.lang.String name)
Create a new instance of the DocBuilder. |
|
| Method Summary | |
|---|---|
private static java.lang.String |
_compilePtDoclet(java.io.File ptII)
Return the command to compile ptII/doc/doclets/PtDoclet. |
private int |
_executeCommands()
Build the documentation. |
int |
buildDocs()
Build the Java class and Actor documentation. |
ExecuteCommands |
getExecuteCommands()
Get the command executor, which can be either non-graphical or graphical. |
void |
setConfiguration(Configuration configuration)
Set the configuration. |
void |
setExecuteCommands(ExecuteCommands executeCommands)
Set the command executor, which can be either non-graphical or graphical. |
| Methods inherited from class ptolemy.kernel.util.Attribute |
|---|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Parameter cleanFirst
private Configuration _configuration
private ExecuteCommands _executeCommands
| Constructor Detail |
|---|
public DocBuilder(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The container.name - The name of the code generator.
IllegalActionException - If the super class throws the
exception or error occurs when setting the file path.
NameDuplicationException - If the super class throws the
exception or an error occurs when setting the file path.| Method Detail |
|---|
public int buildDocs()
throws IllegalActionException
$PTII/doc.
However, if the configuration set by setConfiguration(Configuration) then the configuration is
searched for a _docApplicationSpecializer parameter. If that
parameter exists it is assumed to name a class that implements
the DocApplicationSpecializer interface and the
DocApplicationSpecializer.buildCommands(ExecuteCommands)
method which returns the commands to invoke.
IllegalActionException - If there is a problem building
the documentation.public ExecuteCommands getExecuteCommands()
setExecuteCommands(ExecuteCommands)public void setConfiguration(Configuration configuration)
configuration - The configuration in which we look up the
_applicationName and _docApplicationSpecializer parameters.public void setExecuteCommands(ExecuteCommands executeCommands)
executeCommands - The subprocess command executor.getExecuteCommands()private static java.lang.String _compilePtDoclet(java.io.File ptII)
private int _executeCommands()
throws IllegalActionException
IllegalActionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||