-
- 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 classLibraryDefinitionImpl.Companion
-
Field Summary
Fields Modifier and Type Field Description private List<String>dependenciesprivate List<String>repositoriesprivate List<String>importsprivate List<Function1<KotlinKernelHost, ?>>initprivate List<Function1<KotlinKernelHost, ?>>initCellprivate List<Function3<KotlinKernelHost, Object, FieldValue, Unit>>afterCellExecutionprivate List<Function1<KotlinKernelHost, ?>>shutdownprivate List<RendererHandler>renderersprivate List<FieldHandler>convertersprivate List<ClassAnnotationHandler>classAnnotationsprivate List<FileAnnotationHandler>fileAnnotationsprivate List<LibraryResource>resourcesprivate List<CodePreprocessor>codePreprocessorsprivate KotlinKernelVersionminKernelVersionprivate StringoriginalDescriptorText
-
Method Summary
Modifier and Type Method Description List<String>getDependencies()List of artifact dependencies in gradle colon-separated format UnitsetDependencies(List<String> dependencies)List of artifact dependencies in gradle colon-separated format List<String>getRepositories()List of repository URLs to resolve dependencies in UnitsetRepositories(List<String> repositories)List of repository URLs to resolve dependencies in List<String>getImports()List of imports: simple and star imports are both allowed UnitsetImports(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 UnitsetInit(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 UnitsetInitCell(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 UnitsetAfterCellExecution(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 UnitsetShutdown(List<Function1<KotlinKernelHost, ?>> shutdown)List of code snippets evaluated on kernel shutdown List<RendererHandler>getRenderers()List of type renderers. UnitsetRenderers(List<RendererHandler> renderers)List of type renderers. List<FieldHandler>getConverters()List of type converters used by type providers processors UnitsetConverters(List<FieldHandler> converters)List of type converters used by type providers processors List<ClassAnnotationHandler>getClassAnnotations()List of type annotations used by annotations processor UnitsetClassAnnotations(List<ClassAnnotationHandler> classAnnotations)List of type annotations used by annotations processor List<FileAnnotationHandler>getFileAnnotations()List of file annotation handlers UnitsetFileAnnotations(List<FileAnnotationHandler> fileAnnotations)List of file annotation handlers List<LibraryResource>getResources()List of library resources UnitsetResources(List<LibraryResource> resources)List of library resources List<CodePreprocessor>getCodePreprocessors()List of code preprocessors UnitsetCodePreprocessors(List<CodePreprocessor> codePreprocessors)List of code preprocessors KotlinKernelVersiongetMinKernelVersion()Minimal kernel version that is supported by this library UnitsetMinKernelVersion(KotlinKernelVersion minKernelVersion)Minimal kernel version that is supported by this library StringgetOriginalDescriptorText()Original descriptor text, or null if it has non-textual nature UnitsetOriginalDescriptorText(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<RendererHandler> getRenderers()
List of type renderers. Consider using org.jetbrains.kotlinx.jupyter.api.Renderable as it's generally more convenient
-
setRenderers
Unit setRenderers(List<RendererHandler> 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
-
-
-
-