java.lang.Object
org.jenkinsci.plugins.scriptsecurity.scripts.Language
org.jenkinsci.plugins.scriptsecurity.scripts.languages.GroovyLanguage
All Implemented Interfaces:
ExtensionPoint

@Extension public final class GroovyLanguage extends Language
Language for Groovy scripts.
  • Constructor Details

    • GroovyLanguage

      public GroovyLanguage()
  • Method Details

    • get

      public static Language get()
    • getName

      @NonNull public String getName()
      Description copied from class: Language
      Unique, permanent, internal identifier of this language.
      Specified by:
      getName in class Language
      Returns:
      a short unlocalized identifier, such as might be used for a filename extension
    • getDisplayName

      @NonNull public String getDisplayName()
      Description copied from class: Language
      Display name of the language for use in the UI.
      Specified by:
      getDisplayName in class Language
      Returns:
      a localized name
    • getCodeMirrorMode

      public String getCodeMirrorMode()
      Description copied from class: Language
      A CodeMirror mode string, for purposes of displaying scripts in HTML.
      Overrides:
      getCodeMirrorMode in class Language
      Returns:
      a mode such as clike, or null