test_class.declarator: builder
test_class.modifier: private
test_class.original_string: private CollectionTypeDefinitionBuilder builder;
test_class.type: CollectionTypeDefinitionBuilder
test_class.var_name: builder
test_class.declarator: stringsField
test_class.modifier: private
test_class.original_string: private VariableElement stringsField;
test_class.type: VariableElement
test_class.var_name: stringsField
test_class.declarator: colorsField
test_class.modifier: private
test_class.original_string: private VariableElement colorsField;
test_class.type: VariableElement
test_class.var_name: colorsField
test_class.declarator: primitiveTypeModelsField
test_class.modifier: private
test_class.original_string: private VariableElement primitiveTypeModelsField;
test_class.type: VariableElement
test_class.var_name: primitiveTypeModelsField
test_class.declarator: modelsField
test_class.modifier: private
test_class.original_string: private VariableElement modelsField;
test_class.type: VariableElement
test_class.var_name: modelsField
test_class.declarator: modelArraysField
test_class.modifier: private
test_class.original_string: private VariableElement modelArraysField;
test_class.type: VariableElement
test_class.var_name: modelArraysField
test_class.file: dubbo-metadata/dubbo-metadata-processor/src/test/java/org/apache/dubbo/metadata/annotation/processing/builder/CollectionTypeDefinitionBuilderTest.java
test_class.identifier: CollectionTypeDefinitionBuilderTest
test_class.superclass: extends AbstractAnnotationProcessingTest
test_case.body: @Test
      public void testAccept() {
          assertTrue(builder.accept(processingEnv, stringsField.asType()));
          assertTrue(builder.accept(processingEnv, colorsField.asType()));
          assertTrue(builder.accept(processingEnv, primitiveTypeModelsField.asType()));
          assertTrue(builder.accept(processingEnv, modelsField.asType()));
          assertTrue(builder.accept(processingEnv, modelArraysField.asType()));
      }
test_case.class_method_signature: CollectionTypeDefinitionBuilderTest.testAccept()
test_case.full_signature: @Test public void testAccept()
test_case.identifier: testAccept
test_case.invocations: assertTrue accept asType assertTrue accept asType assertTrue accept asType assertTrue accept asType assertTrue accept asType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAccept()
focal_class.file: dubbo-metadata/dubbo-metadata-processor/src/main/java/org/apache/dubbo/metadata/annotation/processing/builder/CollectionTypeDefinitionBuilder.java
focal_class.identifier: CollectionTypeDefinitionBuilder
focal_class.interfaces: implements DeclaredTypeDefinitionBuilder
focal_class.class_method_signature: CollectionTypeDefinitionBuilder.accept(ProcessingEnvironment processingEnv, DeclaredType type)
focal_class.full_signature: @Override public boolean accept(ProcessingEnvironment processingEnv, DeclaredType type)
focal_class.identifier: accept
focal_class.modifiers: @Override public
focal_class.parameters: (ProcessingEnvironment processingEnv, DeclaredType type)
focal_class.return: boolean
focal_class.signature: boolean accept(ProcessingEnvironment processingEnv, DeclaredType type)
focal_class.class_method_signature: CollectionTypeDefinitionBuilder.build(ProcessingEnvironment processingEnv, DeclaredType type, TypeDefinition typeDefinition)
focal_class.full_signature: @Override public void build(ProcessingEnvironment processingEnv, DeclaredType type, TypeDefinition typeDefinition)
focal_class.identifier: build
focal_class.modifiers: @Override public
focal_class.parameters: (ProcessingEnvironment processingEnv, DeclaredType type, TypeDefinition typeDefinition)
focal_class.return: void
focal_class.signature: void build(ProcessingEnvironment processingEnv, DeclaredType type, TypeDefinition typeDefinition)
focal_class.class_method_signature: CollectionTypeDefinitionBuilder.getPriority()
focal_class.full_signature: @Override public int getPriority()
focal_class.identifier: getPriority
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPriority()
focal_method.body: @Override
      public boolean accept(ProcessingEnvironment processingEnv, DeclaredType type) {
          Elements elements = processingEnv.getElementUtils();
          TypeElement collectionTypeElement = elements.getTypeElement(Collection.class.getTypeName());
          TypeMirror collectionType = collectionTypeElement.asType();
          Types types = processingEnv.getTypeUtils();
          TypeMirror erasedType = types.erasure(type);
          return types.isAssignable(erasedType, collectionType);
      }
focal_method.class_method_signature: CollectionTypeDefinitionBuilder.accept(ProcessingEnvironment processingEnv, DeclaredType type)
focal_method.full_signature: @Override public boolean accept(ProcessingEnvironment processingEnv, DeclaredType type)
focal_method.identifier: accept
focal_method.invocations: getElementUtils getTypeElement getTypeName asType getTypeUtils erasure isAssignable
focal_method.modifiers: @Override public
focal_method.parameters: (ProcessingEnvironment processingEnv, DeclaredType type)
focal_method.return: boolean
focal_method.signature: boolean accept(ProcessingEnvironment processingEnv, DeclaredType type)