public class ExecutableSegment extends Object
Executable
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_DIR
The default base directory for cached executables.
|
boolean |
isProgram
Whether this segment is a program.
|
boolean |
isScriptlet
Whether this program is a scriptlet.
|
String |
languageTag
The language tag for scriptlets.
|
int |
position
The segment's position in the executable.
|
Program |
program
The program.
|
String |
sourceCode
The source code.
|
int |
startColumnNumber
The column number in the document for where the segment begins.
|
int |
startLineNumber
The line number in the document for where the segment begins.
|
Constructor and Description |
---|
ExecutableSegment(String sourceCode,
int startLineNumber,
int startColumnNumber,
boolean isProgram,
boolean isScriptlet,
String languageTag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createProgram(Executable executable,
LanguageManager manager,
boolean prepare,
boolean debug)
Creates a program for this segment using the appropriate language
adapter.
|
String |
toString() |
public static final String CACHE_DIR
public final boolean isProgram
public final boolean isScriptlet
public final String languageTag
public String sourceCode
public int position
public int startLineNumber
public int startColumnNumber
public Program program
public ExecutableSegment(String sourceCode, int startLineNumber, int startColumnNumber, boolean isProgram, boolean isScriptlet, String languageTag)
sourceCode
- The source codestartLineNumber
- The line number in the document for where the segment beginsstartColumnNumber
- The column number in the document for where the segment beginsisProgram
- Whether this segment is a programisScriptlet
- Whether this program is a scriptletlanguageTag
- The language tag for the programpublic void createProgram(Executable executable, LanguageManager manager, boolean prepare, boolean debug) throws ParsingException
executable
- The executablemanager
- The language managerprepare
- Whether to prepare the programdebug
- Whether to debug the source codeParsingException
- In case of a parsing errorisScriptlet
,
languageTag
,
program
Copyright © 2009-2015 Three Crickets LLC.