public class ScalaAdapter extends LanguageAdapterBase
LanguageAdapter
that supports the Scala language.Modifier and Type | Field and Description |
---|---|
protected scala.tools.nsc.interpreter.IMain |
main |
DEFAULT_EXTENSION, DEFAULT_TAG, EXTENSIONS, LANGUAGE_NAME, LANGUAGE_VERSION, NAME, TAGS, VERSION
Constructor and Description |
---|
ScalaAdapter() |
Modifier and Type | Method and Description |
---|---|
Program |
createProgram(String sourceCode,
boolean isScriptlet,
int position,
int startLineNumber,
int startColumnNumber,
Executable executable)
Turns source code into a program.
|
enter, getAttributes, getLock, getManager, getSourceCodeForExpressionInclude, getSourceCodeForExpressionOutput, getSourceCodeForLiteralOutput, isEphemeral, isThreadSafe, releaseContext, setManager
public ScalaAdapter() throws LanguageAdapterException
LanguageAdapterException
public Program createProgram(String sourceCode, boolean isScriptlet, int position, int startLineNumber, int startColumnNumber, Executable executable) throws ParsingException
LanguageAdapter
Program.prepare()
on the program.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 executableParsingException
- In case of a parsing errorCopyright © 2009-2015 Three Crickets LLC.