public final class BasicProgram extends AbstractBasicProgramPostprocessing
| Constructor and Description |
|---|
BasicProgram() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(Command command)
Add a new command to the list of commands.
|
Collection<Command> |
getCommands() |
Factory |
getFactory() |
protected Command |
getFirstCommand() |
Command |
getNamedCommand(String name) |
Iterable<String> |
getNamedCommandNames() |
protected Map<String,CommandSub> |
getSubroutineMap() |
void |
reset()
Calling this method will remove all previously built code from the
program.
|
void |
setFactory(Factory factory)
When a factory creates an instance of a class implementing this interface
this method is called to register the factory that created the instance.
|
getStartCommand, postprocesspublic Factory getFactory()
public void setFactory(Factory factory)
FactoryManagedfactory - the factory that manages the instance.public void reset()
BuildableProgramBuildableProgram object is used to execute different programs,
one after the other.
Without calling this method the program would be concatenated and the second execution would contain the program codes of the first program and after that the second.
public void addCommand(Command command)
BuildableProgramprotected Command getFirstCommand()
getFirstCommand in class AbstractBasicProgramPostprocessingpublic Collection<Command> getCommands()
protected Map<String,CommandSub> getSubroutineMap()
getSubroutineMap in class AbstractBasicProgramPostprocessingCopyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.