-
- All Implemented Interfaces:
-
org.jetbrains.kotlinx.jupyter.api.libraries.LibraryDefinition
public final class LibraryDefinitionImpl implements LibraryDefinition
Trivial implementation of LibraryDefinition - simple container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
LibraryDefinitionImpl.Companion
-
Field Summary
Fields Modifier and Type Field Description private List<String>
dependencies
private List<String>
repositories
private List<String>
imports
private List<Function1<KotlinKernelHost, ?>>
init
private List<Function1<KotlinKernelHost, ?>>
initCell
private List<Function3<KotlinKernelHost, Object, FieldValue, Unit>>
afterCellExecution
private List<Function1<KotlinKernelHost, ?>>
shutdown
private List<RendererTypeHandler>
renderers
private List<FieldHandler>
converters
private List<ClassAnnotationHandler>
classAnnotations
private List<FileAnnotationHandler>
fileAnnotations
private List<LibraryResource>
resources
private List<CodePreprocessor>
codePreprocessors
private KotlinKernelVersion
minKernelVersion
private String
originalDescriptorText
-
Method Summary
Modifier and Type Method Description List<String>
getDependencies()
List of artifact dependencies in gradle colon-separated format Unit
setDependencies(List<String> dependencies)
List of artifact dependencies in gradle colon-separated format List<String>
getRepositories()
List of repository URLs to resolve dependencies in Unit
setRepositories(List<String> repositories)
List of repository URLs to resolve dependencies in List<String>
getImports()
List of imports: simple and star imports are both allowed Unit
setImports(List<String> imports)
List of imports: simple and star imports are both allowed List<Function1<KotlinKernelHost, ?>>
getInit()
List of code snippets evaluated on library initialization Unit
setInit(List<Function1<KotlinKernelHost, ?>> init)
List of code snippets evaluated on library initialization List<Function1<KotlinKernelHost, ?>>
getInitCell()
List of code snippets evaluated before every cell evaluation Unit
setInitCell(List<Function1<KotlinKernelHost, ?>> initCell)
List of code snippets evaluated before every cell evaluation List<Function3<KotlinKernelHost, Object, FieldValue, Unit>>
getAfterCellExecution()
List of callbacks called after cell evaluation Unit
setAfterCellExecution(List<Function3<KotlinKernelHost, Object, FieldValue, Unit>> afterCellExecution)
List of callbacks called after cell evaluation List<Function1<KotlinKernelHost, ?>>
getShutdown()
List of code snippets evaluated on kernel shutdown Unit
setShutdown(List<Function1<KotlinKernelHost, ?>> shutdown)
List of code snippets evaluated on kernel shutdown List<RendererTypeHandler>
getRenderers()
List of type renderers. Unit
setRenderers(List<RendererTypeHandler> renderers)
List of type renderers. List<FieldHandler>
getConverters()
List of type converters used by type providers processors Unit
setConverters(List<FieldHandler> converters)
List of type converters used by type providers processors List<ClassAnnotationHandler>
getClassAnnotations()
List of type annotations used by annotations processor Unit
setClassAnnotations(List<ClassAnnotationHandler> classAnnotations)
List of type annotations used by annotations processor List<FileAnnotationHandler>
getFileAnnotations()
List of file annotation handlers Unit
setFileAnnotations(List<FileAnnotationHandler> fileAnnotations)
List of file annotation handlers List<LibraryResource>
getResources()
List of library resources Unit
setResources(List<LibraryResource> resources)
List of library resources List<CodePreprocessor>
getCodePreprocessors()
List of code preprocessors Unit
setCodePreprocessors(List<CodePreprocessor> codePreprocessors)
List of code preprocessors KotlinKernelVersion
getMinKernelVersion()
Minimal kernel version that is supported by this library Unit
setMinKernelVersion(KotlinKernelVersion minKernelVersion)
Minimal kernel version that is supported by this library String
getOriginalDescriptorText()
Original descriptor text, or null if it has non-textual nature Unit
setOriginalDescriptorText(String originalDescriptorText)
Original descriptor text, or null if it has non-textual nature -
-
Method Detail
-
getDependencies
List<String> getDependencies()
List of artifact dependencies in gradle colon-separated format
-
setDependencies
Unit setDependencies(List<String> dependencies)
List of artifact dependencies in gradle colon-separated format
-
getRepositories
List<String> getRepositories()
List of repository URLs to resolve dependencies in
-
setRepositories
Unit setRepositories(List<String> repositories)
List of repository URLs to resolve dependencies in
-
getImports
List<String> getImports()
List of imports: simple and star imports are both allowed
-
setImports
Unit setImports(List<String> imports)
List of imports: simple and star imports are both allowed
-
getInit
List<Function1<KotlinKernelHost, ?>> getInit()
List of code snippets evaluated on library initialization
-
setInit
Unit setInit(List<Function1<KotlinKernelHost, ?>> init)
List of code snippets evaluated on library initialization
-
getInitCell
List<Function1<KotlinKernelHost, ?>> getInitCell()
List of code snippets evaluated before every cell evaluation
-
setInitCell
Unit setInitCell(List<Function1<KotlinKernelHost, ?>> initCell)
List of code snippets evaluated before every cell evaluation
-
getAfterCellExecution
List<Function3<KotlinKernelHost, Object, FieldValue, Unit>> getAfterCellExecution()
List of callbacks called after cell evaluation
-
setAfterCellExecution
Unit setAfterCellExecution(List<Function3<KotlinKernelHost, Object, FieldValue, Unit>> afterCellExecution)
List of callbacks called after cell evaluation
-
getShutdown
List<Function1<KotlinKernelHost, ?>> getShutdown()
List of code snippets evaluated on kernel shutdown
-
setShutdown
Unit setShutdown(List<Function1<KotlinKernelHost, ?>> shutdown)
List of code snippets evaluated on kernel shutdown
-
getRenderers
List<RendererTypeHandler> getRenderers()
List of type renderers. Consider using org.jetbrains.kotlinx.jupyter.api.Renderable as it's generally more convenient
-
setRenderers
Unit setRenderers(List<RendererTypeHandler> renderers)
List of type renderers. Consider using org.jetbrains.kotlinx.jupyter.api.Renderable as it's generally more convenient
-
getConverters
List<FieldHandler> getConverters()
List of type converters used by type providers processors
-
setConverters
Unit setConverters(List<FieldHandler> converters)
List of type converters used by type providers processors
-
getClassAnnotations
List<ClassAnnotationHandler> getClassAnnotations()
List of type annotations used by annotations processor
-
setClassAnnotations
Unit setClassAnnotations(List<ClassAnnotationHandler> classAnnotations)
List of type annotations used by annotations processor
-
getFileAnnotations
List<FileAnnotationHandler> getFileAnnotations()
List of file annotation handlers
-
setFileAnnotations
Unit setFileAnnotations(List<FileAnnotationHandler> fileAnnotations)
List of file annotation handlers
-
getResources
List<LibraryResource> getResources()
List of library resources
-
setResources
Unit setResources(List<LibraryResource> resources)
List of library resources
-
getCodePreprocessors
List<CodePreprocessor> getCodePreprocessors()
List of code preprocessors
-
setCodePreprocessors
Unit setCodePreprocessors(List<CodePreprocessor> codePreprocessors)
List of code preprocessors
-
getMinKernelVersion
KotlinKernelVersion getMinKernelVersion()
Minimal kernel version that is supported by this library
-
setMinKernelVersion
Unit setMinKernelVersion(KotlinKernelVersion minKernelVersion)
Minimal kernel version that is supported by this library
-
getOriginalDescriptorText
String getOriginalDescriptorText()
Original descriptor text, or null if it has non-textual nature
-
setOriginalDescriptorText
Unit setOriginalDescriptorText(String originalDescriptorText)
Original descriptor text, or null if it has non-textual nature
-
-
-
-