Class MarkdownLanguage
java.lang.Object
qupath.lib.scripting.languages.ScriptLanguage
qupath.lib.gui.scripting.languages.MarkdownLanguage
- All Implemented Interfaces:
HtmlRenderer,ExecutableLanguage
Class for the representation of JSON syntax in QuPath.
This class stores the QuPath implementation of Markdown syntaxing and a dummy plain auto-completion.
- Since:
- v0.4.0
- Author:
- Pete Bankhead (based on Melvin Gelbard's code)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ScriptParameters params) Execute the given script String.Get theScriptAutoCompletorobject that takes care of this language's auto-completion.static MarkdownLanguageGet the static instance of this class.Methods inherited from class qupath.lib.scripting.languages.ScriptLanguage
getExtensions, getName, toString
-
Constructor Details
-
MarkdownLanguage
public MarkdownLanguage()Constructor for JSON language. This constructor should never be called. Instead, use the staticgetInstance()method.Note: this has to be public for the
ServiceLoaderto work.
-
-
Method Details
-
getInstance
Get the static instance of this class.- Returns:
- instance
-
getAutoCompletor
Description copied from class:ScriptLanguageGet theScriptAutoCompletorobject that takes care of this language's auto-completion.Can return
nullif the script editor should not handle auto-completion for this language.- Overrides:
getAutoCompletorin classScriptLanguage- Returns:
- auto-completor
-
execute
Description copied from interface:ExecutableLanguageExecute the given script String.- Specified by:
executein interfaceExecutableLanguage- Returns:
- Throws:
ScriptException
-