-
- All Implemented Interfaces:
-
org.jetbrains.kotlinx.jupyter.api.FieldHandler
public final class FieldHandlerByClass implements FieldHandler
-
-
Field Summary
Fields Modifier and Type Field Description private final FieldHandlerExecution<?>
execution
-
Constructor Summary
Constructors Constructor Description FieldHandlerByClass(KClass<out Object> kClass, FieldHandlerExecution<?> execution)
-
Method Summary
Modifier and Type Method Description Boolean
acceptsType(KType type)
Returns true if this converter accepts type, false otherwise FieldHandlerExecution<?>
getExecution()
Execution to handle conversion. -
-
Constructor Detail
-
FieldHandlerByClass
FieldHandlerByClass(KClass<out Object> kClass, FieldHandlerExecution<?> execution)
-
-
Method Detail
-
acceptsType
Boolean acceptsType(KType type)
Returns true if this converter accepts type, false otherwise
-
getExecution
FieldHandlerExecution<?> getExecution()
Execution to handle conversion. Should not throw if acceptsType returns true
-
-
-
-