public class ScalaProgram extends ProgramBase<ScalaAdapter>
adapter, executable, isScriptlet, position, sourceCode, startColumnNumber, startLineNumber
Constructor and Description |
---|
ScalaProgram(String sourceCode,
boolean isScriptlet,
int position,
int startLineNumber,
int startColumnNumber,
Executable executable,
ScalaAdapter adapter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ExecutionContext executionContext)
Executes the program.
|
getSourceCode, prepare
public ScalaProgram(String sourceCode, boolean isScriptlet, int position, int startLineNumber, int startColumnNumber, Executable executable, ScalaAdapter adapter)
sourceCode
- The source codeisScriptlet
- Whether the source code is a scriptletposition
- The program's position in the executablestartLineNumber
- The line number in the document for where the program's source
code beginsstartColumnNumber
- The column number in the document for where the program's source
code beginsexecutable
- The executableadapter
- The language adapterpublic void execute(ExecutionContext executionContext) throws ParsingException, ExecutionException
Program
executionContext
- The execution contextParsingException
- In case of a parsing errorExecutionException
- In case of an execution errorCopyright © 2009-2015 Three Crickets LLC.