Package io.jenkins.plugins.prism
Klasse SourceCodeViewModel
java.lang.Object
io.jenkins.plugins.prism.SourceCodeViewModel
- Alle implementierten Schnittstellen:
ModelObject
Renders a source code file with Prism syntax highlighting in a separate Jenkins view. Optionally, highlights a marker
in the source code: either a line, some characters in a line, or a multi-line block.
- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSourceCodeViewModel
(Run<?, ?> owner, String fileName, Reader sourceCodeReader, Marker marker) Creates a new source code view model instance. -
Methodenübersicht
-
Konstruktordetails
-
SourceCodeViewModel
Creates a new source code view model instance.- Parameter:
owner
- the current build as owner of this viewfileName
- the file name of the shown contentsourceCodeReader
- the source code file to show, provided by aReader
instancemarker
- a block of lines (or a part of a line) to mark in the source code view
-
-
Methodendetails
-
getPrismConfiguration
-
getDisplayName
- Angegeben von:
getDisplayName
in SchnittstelleModelObject
-
getOwner
Returns the build as owner of this view.- Gibt zurück:
- the build
-
getSourceCode
Returns the colorized source code.- Gibt zurück:
- the source code
-