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 SummaryNested classes/interfaces inherited from class qupath.lib.gui.scripting.languages.DefaultScriptLanguageDefaultScriptLanguage.ImportStatementGenerator
- 
Field SummaryFields inherited from class qupath.lib.gui.scripting.languages.DefaultScriptLanguageJAVA_IMPORTER, PYTHON_IMPORTER
- 
Method SummaryModifier and TypeMethodDescriptionstatic GroovyLanguageGet the static instance of this class, using the default code completions.static GroovyLanguagegetInstanceWithCompletions(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.DefaultScriptLanguagecreateContext, execute, getAutoCompletor, getDefaultAutoCompletor, getDefaultScriptName, getImportStatements, getStaticImportStatements, tryToInterpretMessageMethods inherited from class qupath.lib.scripting.languages.ScriptLanguagegetExtensions, getName, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface qupath.lib.scripting.languages.ExecutableLanguageexecute
- 
Method Details- 
getInstanceGet the static instance of this class, using the default code completions.- Returns:
- instance
 
- 
getInstanceWithCompletionspublic 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
 
- 
getImportStatementGeneratorDescription 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 class- DefaultScriptLanguage
- Returns:
 
 
-