public class PegdownAdapter extends LanguageAdapterBase
Modifier and Type | Field and Description |
---|---|
protected org.pegdown.PegDownProcessor |
processor |
DEFAULT_EXTENSION, DEFAULT_TAG, EXTENSIONS, LANGUAGE_NAME, LANGUAGE_VERSION, NAME, TAGS, VERSION
Constructor and Description |
---|
PegdownAdapter()
Constructor.
|
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.
|
boolean |
isEphemeral()
Some languages are meant for use in one segment only.
|
enter, getAttributes, getLock, getManager, getSourceCodeForExpressionInclude, getSourceCodeForExpressionOutput, getSourceCodeForLiteralOutput, isThreadSafe, releaseContext, setManager
public PegdownAdapter() throws LanguageAdapterException
LanguageAdapterException
- In case of an initialization errorpublic boolean isEphemeral()
LanguageAdapter
isEphemeral
in interface LanguageAdapter
isEphemeral
in class LanguageAdapterBase
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.