java.lang.Object
org.jenkinsci.plugins.scriptsecurity.scripts.Language
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
GroovyLanguage, GroovyShellLanguage, GroovyXmlLanguage, JellyLanguage, JexlLanguage, SystemCommandLanguage

public abstract class Language extends Object implements ExtensionPoint
A language for which we can request ScriptApproval.
  • Constructor Details

    • Language

      public Language()
  • Method Details

    • getName

      @NonNull public abstract String getName()
      Unique, permanent, internal identifier of this language.
      Returns:
      a short unlocalized identifier, such as might be used for a filename extension
    • getDisplayName

      @NonNull public abstract String getDisplayName()
      Display name of the language for use in the UI.
      Returns:
      a localized name
    • getCodeMirrorMode

      @CheckForNull public String getCodeMirrorMode()
      A CodeMirror mode string, for purposes of displaying scripts in HTML.
      Returns:
      a mode such as clike, or null