Index

A C G I N R S T 
All Classes and Interfaces|All Packages

A

apply(Project) - Method in class io.asyncapi.generator.AsyncApiGeneratorPlugin
 
asMap(Object) - Static method in class io.asyncapi.generator.codegen.RefResolver
 
AsyncApiExtension - Class in io.asyncapi.generator
DSL extension that configures the AsyncAPI code generator.
AsyncApiExtension(Project) - Constructor for class io.asyncapi.generator.AsyncApiExtension
Constructs the extension with sensible defaults derived from the project.
AsyncApiGeneratorPlugin - Class in io.asyncapi.generator
 
AsyncApiGeneratorPlugin() - Constructor for class io.asyncapi.generator.AsyncApiGeneratorPlugin
 

C

CodeGenerator - Class in io.asyncapi.generator.codegen
Main orchestrator: reads a parsed AsyncAPI document and writes Java source files for models, consumers, producers, topic constants, and optional Kafka configuration.
CodeGenerator(Map<String, Object>, String, File, boolean, boolean) - Constructor for class io.asyncapi.generator.codegen.CodeGenerator
 

G

generate() - Method in class io.asyncapi.generator.codegen.CodeGenerator
Runs all generation phases.
generate() - Method in class io.asyncapi.generator.GenerateAsyncApiTask
Executes code generation: parses the AsyncAPI spec and writes Java sources.
GenerateAsyncApiTask - Class in io.asyncapi.generator
Gradle task that parses an AsyncAPI 3.x specification and generates Spring Kafka consumer and producer Java source files.
GenerateAsyncApiTask() - Constructor for class io.asyncapi.generator.GenerateAsyncApiTask
 
getBasePackage() - Method in class io.asyncapi.generator.AsyncApiExtension
Base Java package for all generated sources.
getBasePackage() - Method in class io.asyncapi.generator.GenerateAsyncApiTask
Base Java package for all generated types.
getGenerateKafkaConfig() - Method in class io.asyncapi.generator.AsyncApiExtension
Whether to generate a AsyncApiKafkaConfig Spring @Configuration bean with pre-configured producer/consumer factories.
getGenerateKafkaConfig() - Method in class io.asyncapi.generator.GenerateAsyncApiTask
Whether to generate a AsyncApiKafkaConfig Spring configuration bean.
getInputFile() - Method in class io.asyncapi.generator.AsyncApiExtension
Path to the AsyncAPI spec file (YAML or JSON, AsyncAPI 3.x format).
getInputFile() - Method in class io.asyncapi.generator.GenerateAsyncApiTask
The AsyncAPI spec file to parse (YAML or JSON).
getOutputDir() - Method in class io.asyncapi.generator.GenerateAsyncApiTask
Directory where generated Java source files will be written.
getUseLombok() - Method in class io.asyncapi.generator.AsyncApiExtension
Whether to annotate generated model classes with Lombok (@Data, @Builder, @NoArgsConstructor, @AllArgsConstructor).
getUseLombok() - Method in class io.asyncapi.generator.GenerateAsyncApiTask
Whether to annotate generated model classes with Lombok annotations.

I

io.asyncapi.generator - package io.asyncapi.generator
 
io.asyncapi.generator.codegen - package io.asyncapi.generator.codegen
 

N

nameFromRef(String) - Static method in class io.asyncapi.generator.codegen.RefResolver
Extracts the terminal name from a $ref path.
NameUtils - Class in io.asyncapi.generator.codegen
 

R

RefResolver - Class in io.asyncapi.generator.codegen
Resolves JSON/YAML local $ref pointers within an AsyncAPI document.
RefResolver(Map<String, Object>) - Constructor for class io.asyncapi.generator.codegen.RefResolver
 
resolve(String) - Method in class io.asyncapi.generator.codegen.RefResolver
Resolves "#/path/to/thing" within the document root.
resolveIfRef(Map<String, Object>) - Method in class io.asyncapi.generator.codegen.RefResolver
If the map contains "$ref", resolve it; otherwise return the map itself.

S

safeFieldName(String) - Static method in class io.asyncapi.generator.codegen.NameUtils
Ensures a field name does not clash with Java keywords.

T

toClassName(String) - Static method in class io.asyncapi.generator.codegen.NameUtils
"user-signed-up" / "user_signed_up" / "user/signedup" → "UserSignedup"
toConstantName(String) - Static method in class io.asyncapi.generator.codegen.NameUtils
"user/signedup" → "USER_SIGNEDUP"
toJavaType(Map<String, Object>) - Static method in class io.asyncapi.generator.codegen.NameUtils
Maps an AsyncAPI schema type + format to a Java type string.
toLowerCamel(String) - Static method in class io.asyncapi.generator.codegen.NameUtils
"UserSignedup" → "userSignedup"
A C G I N R S T 
All Classes and Interfaces|All Packages