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, postprocess
public Factory getFactory()
public void setFactory(Factory factory)
FactoryManaged
factory
- the factory that manages the instance.public void reset()
BuildableProgram
BuildableProgram
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)
BuildableProgram
protected Command getFirstCommand()
getFirstCommand
in class AbstractBasicProgramPostprocessing
public Collection<Command> getCommands()
protected Map<String,CommandSub> getSubroutineMap()
getSubroutineMap
in class AbstractBasicProgramPostprocessing
Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.