@SPI public interface TypeDefinitionBuilder<T extends TypeMirror> extends Prioritized
TypeDefinitionCOMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(ProcessingEnvironment processingEnv,
TypeMirror type)
Test the specified
type is accepted or not |
static TypeDefinition |
build(ProcessingEnvironment processingEnv,
Element element)
Build the instance of
TypeDefinition from the specified element |
void |
build(ProcessingEnvironment processingEnv,
T type,
TypeDefinition typeDefinition)
Build the instance of
TypeDefinition |
static TypeDefinition |
build(ProcessingEnvironment processingEnv,
TypeMirror type)
Build the instance of
TypeDefinition from the specified type |
compareTo, getPriorityboolean accept(ProcessingEnvironment processingEnv, TypeMirror type)
type is accepted or notprocessingEnv - ProcessingEnvironmenttype - typetrue if acceptedvoid build(ProcessingEnvironment processingEnv, T type, TypeDefinition typeDefinition)
TypeDefinitionprocessingEnv - ProcessingEnvironmenttype - typetypeDefinition - TypeDefinition to be builtstatic TypeDefinition build(ProcessingEnvironment processingEnv, Element element)
TypeDefinition from the specified elementprocessingEnv - ProcessingEnvironmentelement - source elementstatic TypeDefinition build(ProcessingEnvironment processingEnv, TypeMirror type)
TypeDefinition from the specified typeprocessingEnv - ProcessingEnvironmenttype - typeCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.