类 ErrorCodeProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
io.github.tcq1007.valid.errorcode.ErrorCodeProcessor
所有已实现的接口:
Processor

@AutoService(javax.annotation.processing.Processor.class) @SupportedAnnotationTypes("io.github.tcq1007.valid.errorcode.ValidErrorCode") @SupportedSourceVersion(RELEASE_21) public class ErrorCodeProcessor extends AbstractProcessor
Annotation processor for validating error codes in enums. This processor validates that error codes follow specified format rules.

This processor extends AbstractProcessor and is automatically registered for processing annotations.

  • 构造器详细资料

    • ErrorCodeProcessor

      public ErrorCodeProcessor()
      Constructs a new ErrorCodeProcessor.
  • 方法详细资料

    • init

      public void init(ProcessingEnvironment processingEnv)
      Initializes the processor with the processing environment.
      指定者:
      init 在接口中 Processor
      覆盖:
      init 在类中 AbstractProcessor
      参数:
      processingEnv - The processing environment.
    • process

      public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
      Processes the annotations found in the source files.
      指定者:
      process 在接口中 Processor
      指定者:
      process 在类中 AbstractProcessor
      参数:
      annotations - The set of annotations to process.
      roundEnv - The current round environment.
      返回:
      True if the annotations were processed, false otherwise.