Class GroovyLanguage
java.lang.Object
qupath.lib.scripting.languages.ScriptLanguage
qupath.lib.gui.scripting.languages.DefaultScriptLanguage
qupath.lib.gui.scripting.languages.GroovyLanguage
- All Implemented Interfaces:
ExecutableLanguage
Class for the representation of the Groovy programming language in QuPath.
This class stores the QuPath implementation of Groovy syntaxing and Groovy auto-completion.
- Since:
- v0.4.0
- Author:
- Melvin Gelbard, Pete Bankhead
-
Nested Class Summary
Nested classes/interfaces inherited from class qupath.lib.gui.scripting.languages.DefaultScriptLanguage
DefaultScriptLanguage.ImportStatementGenerator
-
Field Summary
Fields inherited from class qupath.lib.gui.scripting.languages.DefaultScriptLanguage
JAVA_IMPORTER, PYTHON_IMPORTER
-
Constructor Summary
-
Method Summary
Methods inherited from class qupath.lib.gui.scripting.languages.DefaultScriptLanguage
createContext, execute, getAutoCompletor, getDefaultAutoCompletor, getDefaultScriptName, getImportStatements, getStaticImportStatements, tryToInterpretMessage
Methods inherited from class qupath.lib.scripting.languages.ScriptLanguage
getExtensions, getName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface qupath.lib.scripting.languages.ExecutableLanguage
execute
-
Constructor Details
-
GroovyLanguage
public GroovyLanguage()Constructor for Groovy Language. This constructor should never be called. Instead, use the staticgetInstance()
method.Note: this has to be public for the
ServiceLoader
to work.
-
-
Method Details
-
getInstance
Get the static instance of this class.- Returns:
- instance
-
getImportStatementGenerator
Description copied from class:DefaultScriptLanguage
Get anDefaultScriptLanguage.ImportStatementGenerator
. This attempts to make an educated guess, returning JAVA_IMPORTER or PYTHON_IMPORTER based on the name- Overrides:
getImportStatementGenerator
in classDefaultScriptLanguage
- Returns:
-