Package com.scriptbasic.interfaces
Interface Program
- All Known Subinterfaces:
BuildableProgram
- All Known Implementing Classes:
AbstractBasicProgramPostprocessing,BasicProgram
public interface Program
The program that was created by the syntax analyzer. The object state is
independent from the execution. The actual runtime should contain all state
information, global variable values, program counter (actual command),
whatever it wants. The implementing class has to be thread safe and immutable
after it was created by the syntax analysis.
- Author:
- Peter Verhas date June 15, 2012
-
Method Summary
Modifier and Type Method Description java.util.Collection<Command>getCommands()CommandgetNamedCommand(java.lang.String name)java.lang.Iterable<java.lang.String>getNamedCommandNames()CommandgetStartCommand()
-
Method Details
-
getStartCommand
Command getStartCommand() -
getNamedCommand
-
getNamedCommandNames
java.lang.Iterable<java.lang.String> getNamedCommandNames() -
getCommands
java.util.Collection<Command> getCommands()
-