类 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.
-
字段概要
从类继承的字段 javax.annotation.processing.AbstractProcessor
processingEnv -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidinit(ProcessingEnvironment processingEnv) Initializes the processor with the processing environment.booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Processes the annotations found in the source files.从类继承的方法 javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
构造器详细资料
-
ErrorCodeProcessor
public ErrorCodeProcessor()Constructs a new ErrorCodeProcessor.
-
-
方法详细资料
-
init
Initializes the processor with the processing environment.- 指定者:
init在接口中Processor- 覆盖:
init在类中AbstractProcessor- 参数:
processingEnv- The processing environment.
-
process
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.
-