Class KotlinCodeGenerationContextBase
-
- All Implemented Interfaces:
-
io.toolisticon.kotlin.generation.spi.KotlinCodeGenerationContext
public abstract class KotlinCodeGenerationContextBase<SELF extends KotlinCodeGenerationContext<SELF>> implements KotlinCodeGenerationContext<SELF>
Abstract base implementation of KotlinCodeGenerationContext for convenience setting of generic types.
-
-
Field Summary
Fields Modifier and Type Field Description private final KClass<SELF>
contextType
private final KotlinCodeGenerationSpiRegistry
registry
-
Constructor Summary
Constructors Constructor Description KotlinCodeGenerationContextBase(KotlinCodeGenerationSpiRegistry registry)
-
Method Summary
Modifier and Type Method Description abstract KClass<SELF>
getContextType()
SELF type of the context implementation, used to verify against io.toolisticon.kotlin.generation.spi.KotlinCodeGenerationSpi.contextType. KotlinCodeGenerationSpiRegistry
getRegistry()
The registry holding strategies and processors so implementations can nest calls to other instances. -
-
Constructor Detail
-
KotlinCodeGenerationContextBase
KotlinCodeGenerationContextBase(KotlinCodeGenerationSpiRegistry registry)
-
-
Method Detail
-
getContextType
abstract KClass<SELF> getContextType()
SELF type of the context implementation, used to verify against io.toolisticon.kotlin.generation.spi.KotlinCodeGenerationSpi.contextType.
-
getRegistry
KotlinCodeGenerationSpiRegistry getRegistry()
The registry holding strategies and processors so implementations can nest calls to other instances.
-
-
-
-