Interface KotlinCodeGenerationContext
-
- All Implemented Interfaces:
public interface KotlinCodeGenerationContext<SELF extends KotlinCodeGenerationContext<SELF>>
Context used for SPI execution. Typically, holds mutable state that is modified while processing the chain. Required because all spi-instances have to be generated via default-constructor, so all state data we would normally store in a property has to be passed to every function call.
-
-
Method Summary
Modifier and Type Method Description <PROCESSOR extends KotlinCodeGenerationProcessor<CONTEXT, INPUT, BUILDER>, CONTEXT extends KotlinCodeGenerationContext<CONTEXT>, INPUT extends Any, BUILDER extends Any> List<PROCESSOR>
processors(KClass<PROCESSOR> processorType)
<STRATEGY extends KotlinCodeGenerationStrategy<CONTEXT, INPUT, SPEC>, CONTEXT extends KotlinCodeGenerationContext<CONTEXT>, INPUT extends Any, SPEC extends Any> List<STRATEGY>
strategies(KClass<STRATEGY> strategyType)
abstract KClass<SELF>
getContextType()
abstract KotlinCodeGenerationSpiRegistry
getRegistry()
-
-
Method Detail
-
processors
<PROCESSOR extends KotlinCodeGenerationProcessor<CONTEXT, INPUT, BUILDER>, CONTEXT extends KotlinCodeGenerationContext<CONTEXT>, INPUT extends Any, BUILDER extends Any> List<PROCESSOR> processors(KClass<PROCESSOR> processorType)
-
strategies
<STRATEGY extends KotlinCodeGenerationStrategy<CONTEXT, INPUT, SPEC>, CONTEXT extends KotlinCodeGenerationContext<CONTEXT>, INPUT extends Any, SPEC extends Any> List<STRATEGY> strategies(KClass<STRATEGY> strategyType)
-
getContextType
abstract KClass<SELF> getContextType()
-
getRegistry
abstract KotlinCodeGenerationSpiRegistry getRegistry()
-
-
-
-