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) |
protected Map<String,CommandSub> |
getSubroutineMap() |
void |
reset()
Calling this method will remove all previously built code from the
program.
|
void |
setFactory(Factory factory) |
getStartCommand, postprocesspublic Factory getFactory()
public void setFactory(Factory factory)
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 © 2012 Verhas and Verhas Software Craftsmen. All Rights Reserved.