public interface Program
More power, flexibility and abstraction can be obtained by working with
higher-level Executable
instances, which may internally incorporate
one or more programs in various languages, rather than working with programs
directly. Programs should be seen as an implementation-specific aspects of
executables.
Executable
,
LanguageAdapter
Modifier and Type | Method and Description |
---|---|
void |
execute(ExecutionContext executionContext)
Executes the program.
|
String |
getSourceCode()
The source code.
|
void |
prepare()
The optional "preparation" sub-phase is intended to speed up usage of
later phases at the expense of higher cost during creation.
|
String getSourceCode()
void prepare() throws PreparationException
PreparationException
- In case of a preparation errorvoid execute(ExecutionContext executionContext) throws ParsingException, ExecutionException
executionContext
- The execution contextParsingException
- In case of a parsing errorExecutionException
- In case of an execution errorCopyright © 2009-2015 Three Crickets LLC.