ExactRendererTypeHandler

@Serializable
class ExactRendererTypeHandler(val className: TypeName, val execution: ResultHandlerCodeExecution) : RendererTypeHandler

Serializable version of type handler. Renders only classes which exactly match className by FQN. Accepts only ResultHandlerCodeExecution because it's the only one that may be correctly serialized.

Constructors

Link copied to clipboard
constructor(className: TypeName, execution: ResultHandlerCodeExecution)

Properties

Link copied to clipboard
Link copied to clipboard

Execution to handle result. Should not throw if acceptsField returns true

Functions

Link copied to clipboard
open override fun accepts(value: Any?): Boolean

Returns true if this renderer accepts value, false otherwise

Link copied to clipboard
open override fun acceptsField(result: FieldValue): Boolean

Returns true if this renderer accepts result, false otherwise

Link copied to clipboard
open override fun acceptsType(type: KClass<*>): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun replaceVariables(mapping: Map<String, String>): RendererTypeHandler

Replace variables and return the result.

Link copied to clipboard
open override fun toString(): String