test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/beanutil/JavaBeanSerializeUtilTest.java
test_class.identifier: JavaBeanSerializeUtilTest
test_case.body: @Test
      @SuppressWarnings("unchecked")
      public void testSerializeJavaBeanDescriptor() {
          JavaBeanDescriptor descriptor = new JavaBeanDescriptor();
          JavaBeanDescriptor result = JavaBeanSerializeUtil.serialize(descriptor);
          Assertions.assertSame(descriptor, result);
  
          Map map = new HashMap();
          map.put("first", descriptor);
          result = JavaBeanSerializeUtil.serialize(map);
          Assertions.assertTrue(result.isMapType());
          Assertions.assertEquals(HashMap.class.getName(), result.getClassName());
          Assertions.assertEquals(map.size(), result.propertySize());
          Object object = result.iterator().next().getValue();
          Assertions.assertTrue(object instanceof JavaBeanDescriptor);
          JavaBeanDescriptor actual = (JavaBeanDescriptor) object;
          Assertions.assertEquals(map.get("first"), actual);
      }
test_case.class_method_signature: JavaBeanSerializeUtilTest.testSerializeJavaBeanDescriptor()
test_case.full_signature: @Test @SuppressWarnings("unchecked") public void testSerializeJavaBeanDescriptor()
test_case.identifier: testSerializeJavaBeanDescriptor
test_case.invocations: serialize assertSame put serialize assertTrue isMapType assertEquals getName getClassName assertEquals size propertySize getValue next iterator assertTrue assertEquals get
test_case.modifiers: @Test @SuppressWarnings("unchecked") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSerializeJavaBeanDescriptor()
focal_class.declarator: logger = LoggerFactory.getLogger(JavaBeanSerializeUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(JavaBeanSerializeUtil.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: TYPES = new HashMap<String, Class<?>>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, Class<?>> TYPES = new HashMap<String, Class<?>>();
focal_class.type: Map<String, Class<?>>
focal_class.var_name: TYPES
focal_class.declarator: ARRAY_PREFIX = "["
focal_class.modifier: private static final
focal_class.original_string: private static final String ARRAY_PREFIX = "[";
focal_class.type: String
focal_class.var_name: ARRAY_PREFIX
focal_class.declarator: REFERENCE_TYPE_PREFIX = "L"
focal_class.modifier: private static final
focal_class.original_string: private static final String REFERENCE_TYPE_PREFIX = "L";
focal_class.type: String
focal_class.var_name: REFERENCE_TYPE_PREFIX
focal_class.declarator: REFERENCE_TYPE_SUFFIX = ";"
focal_class.modifier: private static final
focal_class.original_string: private static final String REFERENCE_TYPE_SUFFIX = ";";
focal_class.type: String
focal_class.var_name: REFERENCE_TYPE_SUFFIX
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/beanutil/JavaBeanSerializeUtil.java
focal_class.identifier: JavaBeanSerializeUtil
focal_class.class_method_signature: JavaBeanSerializeUtil.JavaBeanSerializeUtil()
focal_class.full_signature: private  JavaBeanSerializeUtil()
focal_class.identifier: JavaBeanSerializeUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  JavaBeanSerializeUtil()
focal_class.class_method_signature: JavaBeanSerializeUtil.serialize(Object obj)
focal_class.full_signature: public static JavaBeanDescriptor serialize(Object obj)
focal_class.identifier: serialize
focal_class.modifiers: public static
focal_class.parameters: (Object obj)
focal_class.return: JavaBeanDescriptor
focal_class.signature: JavaBeanDescriptor serialize(Object obj)
focal_class.class_method_signature: JavaBeanSerializeUtil.serialize(Object obj, JavaBeanAccessor accessor)
focal_class.full_signature: public static JavaBeanDescriptor serialize(Object obj, JavaBeanAccessor accessor)
focal_class.identifier: serialize
focal_class.modifiers: public static
focal_class.parameters: (Object obj, JavaBeanAccessor accessor)
focal_class.return: JavaBeanDescriptor
focal_class.signature: JavaBeanDescriptor serialize(Object obj, JavaBeanAccessor accessor)
focal_class.class_method_signature: JavaBeanSerializeUtil.createDescriptorForSerialize(Class<?> cl)
focal_class.full_signature: private static JavaBeanDescriptor createDescriptorForSerialize(Class<?> cl)
focal_class.identifier: createDescriptorForSerialize
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cl)
focal_class.return: JavaBeanDescriptor
focal_class.signature: JavaBeanDescriptor createDescriptorForSerialize(Class<?> cl)
focal_class.class_method_signature: JavaBeanSerializeUtil.createDescriptorIfAbsent(Object obj, JavaBeanAccessor accessor,
                                                                 IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.full_signature: private static JavaBeanDescriptor createDescriptorIfAbsent(Object obj, JavaBeanAccessor accessor,
                                                                 IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.identifier: createDescriptorIfAbsent
focal_class.modifiers: private static
focal_class.parameters: (Object obj, JavaBeanAccessor accessor,
                                                                 IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.return: JavaBeanDescriptor
focal_class.signature: JavaBeanDescriptor createDescriptorIfAbsent(Object obj, JavaBeanAccessor accessor,
                                                                 IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.class_method_signature: JavaBeanSerializeUtil.serializeInternal(JavaBeanDescriptor descriptor, Object obj, JavaBeanAccessor accessor,
                                            IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.full_signature: private static void serializeInternal(JavaBeanDescriptor descriptor, Object obj, JavaBeanAccessor accessor,
                                            IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.identifier: serializeInternal
focal_class.modifiers: private static
focal_class.parameters: (JavaBeanDescriptor descriptor, Object obj, JavaBeanAccessor accessor,
                                            IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.return: void
focal_class.signature: void serializeInternal(JavaBeanDescriptor descriptor, Object obj, JavaBeanAccessor accessor,
                                            IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.class_method_signature: JavaBeanSerializeUtil.deserialize(JavaBeanDescriptor beanDescriptor)
focal_class.full_signature: public static Object deserialize(JavaBeanDescriptor beanDescriptor)
focal_class.identifier: deserialize
focal_class.modifiers: public static
focal_class.parameters: (JavaBeanDescriptor beanDescriptor)
focal_class.return: Object
focal_class.signature: Object deserialize(JavaBeanDescriptor beanDescriptor)
focal_class.class_method_signature: JavaBeanSerializeUtil.deserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader)
focal_class.full_signature: public static Object deserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader)
focal_class.identifier: deserialize
focal_class.modifiers: public static
focal_class.parameters: (JavaBeanDescriptor beanDescriptor, ClassLoader loader)
focal_class.return: Object
focal_class.signature: Object deserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader)
focal_class.class_method_signature: JavaBeanSerializeUtil.deserializeInternal(Object result, JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                              IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.full_signature: private static void deserializeInternal(Object result, JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                              IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.identifier: deserializeInternal
focal_class.modifiers: private static
focal_class.parameters: (Object result, JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                              IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.return: void
focal_class.signature: void deserializeInternal(Object result, JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                              IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.class_method_signature: JavaBeanSerializeUtil.getSetterMethod(Class<?> cls, String property, Class<?> valueCls)
focal_class.full_signature: private static Method getSetterMethod(Class<?> cls, String property, Class<?> valueCls)
focal_class.identifier: getSetterMethod
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cls, String property, Class<?> valueCls)
focal_class.return: Method
focal_class.signature: Method getSetterMethod(Class<?> cls, String property, Class<?> valueCls)
focal_class.class_method_signature: JavaBeanSerializeUtil.instantiate(Class<?> cl)
focal_class.full_signature: private static Object instantiate(Class<?> cl)
focal_class.identifier: instantiate
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cl)
focal_class.return: Object
focal_class.signature: Object instantiate(Class<?> cl)
focal_class.class_method_signature: JavaBeanSerializeUtil.getConstructorArg(Class<?> cl)
focal_class.full_signature: public static Object getConstructorArg(Class<?> cl)
focal_class.identifier: getConstructorArg
focal_class.modifiers: public static
focal_class.parameters: (Class<?> cl)
focal_class.return: Object
focal_class.signature: Object getConstructorArg(Class<?> cl)
focal_class.class_method_signature: JavaBeanSerializeUtil.instantiateForDeserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                                      IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.full_signature: private static Object instantiateForDeserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                                      IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.identifier: instantiateForDeserialize
focal_class.modifiers: private static
focal_class.parameters: (JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                                      IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.return: Object
focal_class.signature: Object instantiateForDeserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                                      IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.class_method_signature: JavaBeanSerializeUtil.name2Class(ClassLoader loader, String name)
focal_class.full_signature: public static Class<?> name2Class(ClassLoader loader, String name)
focal_class.identifier: name2Class
focal_class.modifiers: public static
focal_class.parameters: (ClassLoader loader, String name)
focal_class.return: Class<?>
focal_class.signature: Class<?> name2Class(ClassLoader loader, String name)
focal_class.class_method_signature: JavaBeanSerializeUtil.isArray(String type)
focal_class.full_signature: private static boolean isArray(String type)
focal_class.identifier: isArray
focal_class.modifiers: private static
focal_class.parameters: (String type)
focal_class.return: boolean
focal_class.signature: boolean isArray(String type)
focal_class.class_method_signature: JavaBeanSerializeUtil.isReferenceType(String type)
focal_class.full_signature: private static boolean isReferenceType(String type)
focal_class.identifier: isReferenceType
focal_class.modifiers: private static
focal_class.parameters: (String type)
focal_class.return: boolean
focal_class.signature: boolean isReferenceType(String type)
focal_class.class_method_signature: JavaBeanSerializeUtil.getEnumValueOfMethod(Class cl)
focal_class.full_signature: private static Method getEnumValueOfMethod(Class cl)
focal_class.identifier: getEnumValueOfMethod
focal_class.modifiers: private static
focal_class.parameters: (Class cl)
focal_class.return: Method
focal_class.signature: Method getEnumValueOfMethod(Class cl)
focal_method.body: public static JavaBeanDescriptor serialize(Object obj) {
          return serialize(obj, JavaBeanAccessor.FIELD);
      }
focal_method.class_method_signature: JavaBeanSerializeUtil.serialize(Object obj)
focal_method.full_signature: public static JavaBeanDescriptor serialize(Object obj)
focal_method.identifier: serialize
focal_method.invocations: serialize
focal_method.modifiers: public static
focal_method.parameters: (Object obj)
focal_method.return: JavaBeanDescriptor
focal_method.signature: JavaBeanDescriptor serialize(Object obj)