Class PlainLanguage

java.lang.Object
qupath.lib.scripting.languages.ScriptLanguage
qupath.lib.gui.scripting.languages.PlainLanguage

public class PlainLanguage extends ScriptLanguage
Class for the representation of plain text in QuPath.

This class stores the QuPath implementation of Plain syntaxing and plain auto-completion (both do nothing, as it's plain text).

Since:
v0.4.0
Author:
Melvin Gelbard
  • Constructor Details

    • PlainLanguage

      public PlainLanguage()
      Constructor for a simple Plain Language. This constructor should never be called. Instead, use the static getInstance() method.

      Note: this has to be public for the ServiceLoader to work.

  • Method Details

    • getInstance

      public static PlainLanguage getInstance()
      Get the static instance of this class.
      Returns:
      instance
    • getAutoCompletor

      public ScriptAutoCompletor getAutoCompletor()
      Description copied from class: ScriptLanguage
      Get the ScriptAutoCompletor object that takes care of this language's auto-completion.

      Can return null if the script editor should not handle auto-completion for this language.

      Overrides:
      getAutoCompletor in class ScriptLanguage
      Returns:
      auto-completor