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:
qupath.lib.scripting.languages.ExecutableLanguage
public class GroovyLanguage
extends DefaultScriptLanguage
implements qupath.lib.scripting.languages.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 GroovyLanguageGet the static instance of this class, using the default code completions.static GroovyLanguagegetInstanceWithCompletions(Collection<? extends qupath.lib.scripting.languages.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, tryToInterpretMessageMethods inherited from class qupath.lib.scripting.languages.ScriptLanguage
getExtensions, getName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 qupath.lib.scripting.languages.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:DefaultScriptLanguageGet anDefaultScriptLanguage.ImportStatementGenerator. This attempts to make an educated guess, returning JAVA_IMPORTER or PYTHON_IMPORTER based on the name- Overrides:
getImportStatementGeneratorin classDefaultScriptLanguage- Returns:
-