Package qupath.lib.scripting.languages
Class ScriptLanguage
java.lang.Object
qupath.lib.scripting.languages.ScriptLanguage
- Direct Known Subclasses:
CssLanguage
,DefaultScriptLanguage
,JsonLanguage
,MarkdownLanguage
,PlainLanguage
,PropertiesLanguage
,XmlLanguage
,YamlLanguage
Abstract class to represent languages supported by the script editor.
- Since:
- v0.4.0
- Author:
- Melvin Gelbard, Pete Bankhead
-
Constructor Summary
ModifierConstructorDescriptionprotected
ScriptLanguage
(String name, String ext) Default constructor for aScriptLanguage
.protected
ScriptLanguage
(String name, Collection<String> exts) Default constructor for aScriptLanguage
. -
Method Summary
Modifier and TypeMethodDescriptionGet theScriptAutoCompletor
object that takes care of this language's auto-completion.Get an unmodifiable set containing the possible extensions for this language.getName()
Get the name of this languagetoString()
-
Constructor Details
-
ScriptLanguage
Default constructor for aScriptLanguage
.- Parameters:
name
- the language nameexts
- all supported file extensions for this language, in the form.ext
(lowercase)
-
ScriptLanguage
Default constructor for aScriptLanguage
.- Parameters:
name
- the language nameext
- the file extensions for this language, in the form.ext
(lowercase)
-
-
Method Details
-
getName
Get the name of this language- Returns:
- name
-
getExtensions
Get an unmodifiable set containing the possible extensions for this language.- Returns:
- extension array
-
getAutoCompletor
Get theScriptAutoCompletor
object that takes care of this language's auto-completion.Can return
null
if the script editor should not handle auto-completion for this language.- Returns:
- auto-completor
-
toString
-