Class ScriptLanguage
java.lang.Object
qupath.lib.scripting.languages.ScriptLanguage
- Direct Known Subclasses:
CssLanguage, DefaultScriptLanguage, ImageJMacroLanguage, JsonLanguage, MarkdownLanguage, PlainLanguage, PropertiesLanguage, XmlLanguage, YamlLanguage
Abstract class to represent languages supported by the script editor.
- Since:
- v0.4.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScriptLanguage(String name, String ext) Default constructor for aScriptLanguage.protectedScriptLanguage(String name, Collection<String> exts) Default constructor for aScriptLanguage. -
Method Summary
Modifier and TypeMethodDescriptionGet theScriptAutoCompletorobject 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
-
getExtensions
-
getAutoCompletor
Get theScriptAutoCompletorobject that takes care of this language's auto-completion.Can return
nullif the script editor should not handle auto-completion for this language.- Returns:
- auto-completor
-
toString
-