public abstract class WikiTextAdapterBase extends LanguageAdapterBase
LanguageAdapter
that supports various HTML markup languages as
implemented by Mylyn WikiText.Modifier and Type | Field and Description |
---|---|
protected org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage |
markupLanguage |
DEFAULT_EXTENSION, DEFAULT_TAG, EXTENSIONS, LANGUAGE_NAME, LANGUAGE_VERSION, NAME, TAGS, VERSION
Constructor and Description |
---|
WikiTextAdapterBase(String name,
String version,
Collection<String> extensions,
String defaultExtension,
Collection<String> tags,
String defaultTag)
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
protected final org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage markupLanguage
public WikiTextAdapterBase(String name, String version, Collection<String> extensions, String defaultExtension, Collection<String> tags, String defaultTag) throws LanguageAdapterException
name
- The name of the language adapter implementationversion
- The version of the language adapter implementationextensions
- Standard source code filename extensionsdefaultExtension
- Default source code filename extensiontags
- Language tags supported for scriptletsdefaultTag
- Default language tag used for scriptletsLanguageAdapterException
- 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.