Class Language
- 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 requestScriptApproval
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Language()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getCodeMirrorMode()
A CodeMirror mode string, for purposes of displaying scripts in HTML.abstract String
getDisplayName()
Display name of the language for use in the UI.abstract String
getName()
Unique, permanent, internal identifier of this language.
-
-
-
Method Detail
-
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
-
-