Class StandaloneCommandProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
io.github.projectunified.craftcommand.processor.BaseCommandProcessor
io.github.projectunified.craftcommand.processor.standalone.StandaloneCommandProcessor
All Implemented Interfaces:
Processor

@AutoService(javax.annotation.processing.Processor.class) @SupportedAnnotationTypes("io.github.projectunified.craftcommand.annotation.Command") @SupportedSourceVersion(RELEASE_8) public class StandaloneCommandProcessor extends BaseCommandProcessor
Annotation processor for standalone command platforms. Generates custom wrapper command executors implementing io.github.projectunified.craftcommand.standalone.StandaloneCommand.
  • Constructor Details

    • StandaloneCommandProcessor

      public StandaloneCommandProcessor()
  • Method Details

    • getWrapperClassSuffix

      protected String getWrapperClassSuffix()
      Description copied from class: BaseCommandProcessor
      Returns the wrapper class suffix specific to the platform.
      Specified by:
      getWrapperClassSuffix in class BaseCommandProcessor
      Returns:
      the class name suffix (e.g. "_Executor" or "_Standalone")
    • configureSuperType

      protected void configureSuperType(com.palantir.javapoet.TypeSpec.Builder typeSpec)
      Description copied from class: BaseCommandProcessor
      Configures the super interfaces/classes that the generated wrapper should implement/extend.
      Specified by:
      configureSuperType in class BaseCommandProcessor
      Parameters:
      typeSpec - the class definition builder
    • getSenderTypeName

      protected com.palantir.javapoet.ClassName getSenderTypeName()
      Description copied from class: BaseCommandProcessor
      Returns the platform-specific command sender type name (e.g. Bukkit CommandSender or Object).
      Specified by:
      getSenderTypeName in class BaseCommandProcessor
    • getManagerType

      protected com.palantir.javapoet.TypeName getManagerType()
      Description copied from class: BaseCommandProcessor
      Returns the platform-specific command manager type.
      Specified by:
      getManagerType in class BaseCommandProcessor
    • buildEntryMethods

      protected void buildEntryMethods(com.palantir.javapoet.TypeSpec.Builder typeSpec, CommandModel model, TypeElement typeElement)
      Generates all standalone-specific entry methods for the wrapper class. This includes getName(), getAliases(), getDescription(), execute(), and tabComplete().
      Specified by:
      buildEntryMethods in class BaseCommandProcessor