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
-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic GroovyLanguage
Get the static instance of this class, using the default code completions.static GroovyLanguage
getInstanceWithCompletions
(Collection<? extends AutoCompletions.Completion> completions) Get an instead of this class that uses the specified code completions, rather than the defaults.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
-
Method Details
-
getInstance
Get the static instance of this class, using the default code completions.- Returns:
- instance
-
getInstanceWithCompletions
public static GroovyLanguage getInstanceWithCompletions(Collection<? extends AutoCompletions.Completion> completions) Get an instead of this class that uses the specified code completions, rather than the defaults.- 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:
-