Record Class LanguageInfo
java.lang.Object
java.lang.Record
smile.util.ipynb.LanguageInfo
- Record Components:
name- the language name (e.g."python","scala").version- the language version string (e.g."3.10.4").mimeType- the MIME type for the language (e.g."text/x-python").fileExtension- the standard file extension (e.g.".py").pygmentsLexer- the name of the Pygments lexer for syntax highlighting.nbconvertExporter- the name of the nbconvert exporter for this language.codemirrorMode- the CodeMirror mode — either a plain string or an object.versionInfo- the language version broken into components as a list of integers (e.g.[3, 10, 4, "final", 0]for Python 3.10.4).
public record LanguageInfo(String name, String version, String mimeType, String fileExtension, String pygmentsLexer, String nbconvertExporter, tools.jackson.databind.JsonNode codemirrorMode, List<Object> versionInfo)
extends Record
Information about the programming language of the kernel.
All fields are optional; only name is required by the spec.
The codemirror_mode field may be either a plain string or an
object (e.g. {"name":"ipython","version":3}) so it is modelled
as JsonNode to handle both forms.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.JsonNodeReturns the value of thecodemirrorModerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileExtensionrecord component.final inthashCode()Returns a hash code value for this object.mimeType()Returns the value of themimeTyperecord component.name()Returns the value of thenamerecord component.Returns the value of thenbconvertExporterrecord component.Returns the value of thepygmentsLexerrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.Returns the value of theversionInforecord component.
-
Constructor Details
-
LanguageInfo
public LanguageInfo(String name, String version, String mimeType, String fileExtension, String pygmentsLexer, String nbconvertExporter, tools.jackson.databind.JsonNode codemirrorMode, List<Object> versionInfo) Creates an instance of aLanguageInforecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentmimeType- the value for themimeTyperecord componentfileExtension- the value for thefileExtensionrecord componentpygmentsLexer- the value for thepygmentsLexerrecord componentnbconvertExporter- the value for thenbconvertExporterrecord componentcodemirrorMode- the value for thecodemirrorModerecord componentversionInfo- the value for theversionInforecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
version
-
mimeType
-
fileExtension
Returns the value of thefileExtensionrecord component.- Returns:
- the value of the
fileExtensionrecord component
-
pygmentsLexer
Returns the value of thepygmentsLexerrecord component.- Returns:
- the value of the
pygmentsLexerrecord component
-
nbconvertExporter
Returns the value of thenbconvertExporterrecord component.- Returns:
- the value of the
nbconvertExporterrecord component
-
codemirrorMode
public tools.jackson.databind.JsonNode codemirrorMode()Returns the value of thecodemirrorModerecord component.- Returns:
- the value of the
codemirrorModerecord component
-
versionInfo
Returns the value of theversionInforecord component.- Returns:
- the value of the
versionInforecord component
-