public class LuajProgram extends ProgramBase<LuajAdapter>
adapter, executable, isScriptlet, position, sourceCode, startColumnNumber, startLineNumber
Constructor and Description |
---|
LuajProgram(String sourceCode,
boolean isScriptlet,
int position,
int startLineNumber,
int startColumnNumber,
Executable executable,
LuajAdapter adapter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ExecutionContext executionContext)
Executes the program.
|
void |
prepare()
The optional "preparation" sub-phase is intended to speed up usage of
later phases at the expense of higher cost during creation.
|
getSourceCode
public LuajProgram(String sourceCode, boolean isScriptlet, int position, int startLineNumber, int startColumnNumber, Executable executable, LuajAdapter 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 prepare() throws PreparationException
Program
prepare
in interface Program
prepare
in class ProgramBase<LuajAdapter>
PreparationException
- In case of a preparation errorpublic 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.