Package io.github.projectunified.craftcommand.processor.generator
package io.github.projectunified.craftcommand.processor.generator
Code generation half of the annotation processor.
CommandGenerator turns a parsed
CommandModel into a wrapper source file. Generators do not read the core command annotations; the only
annotation reads left are SPI handler dispatch (third-party annotations) and platform annotations such as
@Permission.
A platform generator extends BaseCommandGenerator
and overrides only the platform hooks; the shared routing, parameter resolution and suggestion code is
inherited. See docs/processor-flow.md for a minimal example.
-
ClassDescriptionBase generator shared by every platform.Turns a parsed
CommandModelinto the platform wrapper source file.Creates the platform generator of one annotation-processing session.Allocates the local variable names of one generated command slot.Pure naming utilities for generated fields, methods, and identifiers.Registry for sender types supported by a platform.Loads processor extension handlers via Java SPI.Single source of truth for built-in and platform parameter types.A registered type's behaviors.Fluent builder.Inputs available to a platform multi-argument resolver.Inputs available to a platform suggestion provider.