test_class.declarator: bigPerson
test_class.original_string: BigPerson bigPerson;
test_class.type: BigPerson
test_class.var_name: bigPerson
test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/utils/PojoUtilsTest.java
test_class.identifier: PojoUtilsTest
test_case.body: @Test
      public void testMapToEnum() throws Exception {
          Map map = new HashMap();
          map.put("name", "MONDAY");
          Object o = PojoUtils.realize(map, Day.class);
          assertEquals(o, Day.MONDAY);
      }
test_case.class_method_signature: PojoUtilsTest.testMapToEnum()
test_case.full_signature: @Test public void testMapToEnum()
test_case.identifier: testMapToEnum
test_case.invocations: put realize assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMapToEnum()
focal_class.declarator: logger = LoggerFactory.getLogger(PojoUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(PojoUtils.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: NAME_METHODS_CACHE = new ConcurrentHashMap<String, Method>()
focal_class.modifier: private static final
focal_class.original_string: private static final ConcurrentMap<String, Method> NAME_METHODS_CACHE = new ConcurrentHashMap<String, Method>();
focal_class.type: ConcurrentMap<String, Method>
focal_class.var_name: NAME_METHODS_CACHE
focal_class.declarator: CLASS_FIELD_CACHE = new ConcurrentHashMap<Class<?>, ConcurrentMap<String, Field>>()
focal_class.modifier: private static final
focal_class.original_string: private static final ConcurrentMap<Class<?>, ConcurrentMap<String, Field>> CLASS_FIELD_CACHE = new ConcurrentHashMap<Class<?>, ConcurrentMap<String, Field>>();
focal_class.type: ConcurrentMap<Class<?>, ConcurrentMap<String, Field>>
focal_class.var_name: CLASS_FIELD_CACHE
focal_class.declarator: GENERIC_WITH_CLZ = Boolean.parseBoolean(ConfigUtils.getProperty(CommonConstants.GENERIC_WITH_CLZ_KEY, "true"))
focal_class.modifier: private static final
focal_class.original_string: private static final boolean GENERIC_WITH_CLZ = Boolean.parseBoolean(ConfigUtils.getProperty(CommonConstants.GENERIC_WITH_CLZ_KEY, "true"));
focal_class.type: boolean
focal_class.var_name: GENERIC_WITH_CLZ
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java
focal_class.identifier: PojoUtils
focal_class.class_method_signature: PojoUtils.generalize(Object[] objs)
focal_class.full_signature: public static Object[] generalize(Object[] objs)
focal_class.identifier: generalize
focal_class.modifiers: public static
focal_class.parameters: (Object[] objs)
focal_class.return: Object[]
focal_class.signature: Object[] generalize(Object[] objs)
focal_class.class_method_signature: PojoUtils.realize(Object[] objs, Class<?>[] types)
focal_class.full_signature: public static Object[] realize(Object[] objs, Class<?>[] types)
focal_class.identifier: realize
focal_class.modifiers: public static
focal_class.parameters: (Object[] objs, Class<?>[] types)
focal_class.return: Object[]
focal_class.signature: Object[] realize(Object[] objs, Class<?>[] types)
focal_class.class_method_signature: PojoUtils.realize(Object[] objs, Class<?>[] types, Type[] gtypes)
focal_class.full_signature: public static Object[] realize(Object[] objs, Class<?>[] types, Type[] gtypes)
focal_class.identifier: realize
focal_class.modifiers: public static
focal_class.parameters: (Object[] objs, Class<?>[] types, Type[] gtypes)
focal_class.return: Object[]
focal_class.signature: Object[] realize(Object[] objs, Class<?>[] types, Type[] gtypes)
focal_class.class_method_signature: PojoUtils.generalize(Object pojo)
focal_class.full_signature: public static Object generalize(Object pojo)
focal_class.identifier: generalize
focal_class.modifiers: public static
focal_class.parameters: (Object pojo)
focal_class.return: Object
focal_class.signature: Object generalize(Object pojo)
focal_class.class_method_signature: PojoUtils.generalize(Object pojo, Map<Object, Object> history)
focal_class.full_signature: @SuppressWarnings("unchecked") private static Object generalize(Object pojo, Map<Object, Object> history)
focal_class.identifier: generalize
focal_class.modifiers: @SuppressWarnings("unchecked") private static
focal_class.parameters: (Object pojo, Map<Object, Object> history)
focal_class.return: Object
focal_class.signature: Object generalize(Object pojo, Map<Object, Object> history)
focal_class.class_method_signature: PojoUtils.realize(Object pojo, Class<?> type)
focal_class.full_signature: public static Object realize(Object pojo, Class<?> type)
focal_class.identifier: realize
focal_class.modifiers: public static
focal_class.parameters: (Object pojo, Class<?> type)
focal_class.return: Object
focal_class.signature: Object realize(Object pojo, Class<?> type)
focal_class.class_method_signature: PojoUtils.realize(Object pojo, Class<?> type, Type genericType)
focal_class.full_signature: public static Object realize(Object pojo, Class<?> type, Type genericType)
focal_class.identifier: realize
focal_class.modifiers: public static
focal_class.parameters: (Object pojo, Class<?> type, Type genericType)
focal_class.return: Object
focal_class.signature: Object realize(Object pojo, Class<?> type, Type genericType)
focal_class.class_method_signature: PojoUtils.createCollection(Class<?> type, int len)
focal_class.full_signature: @SuppressWarnings("unchecked") private static Collection<Object> createCollection(Class<?> type, int len)
focal_class.identifier: createCollection
focal_class.modifiers: @SuppressWarnings("unchecked") private static
focal_class.parameters: (Class<?> type, int len)
focal_class.return: Collection<Object>
focal_class.signature: Collection<Object> createCollection(Class<?> type, int len)
focal_class.class_method_signature: PojoUtils.createMap(Map src)
focal_class.full_signature: private static Map createMap(Map src)
focal_class.identifier: createMap
focal_class.modifiers: private static
focal_class.parameters: (Map src)
focal_class.return: Map
focal_class.signature: Map createMap(Map src)
focal_class.class_method_signature: PojoUtils.realize0(Object pojo, Class<?> type, Type genericType, final Map<Object, Object> history)
focal_class.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) private static Object realize0(Object pojo, Class<?> type, Type genericType, final Map<Object, Object> history)
focal_class.identifier: realize0
focal_class.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) private static
focal_class.parameters: (Object pojo, Class<?> type, Type genericType, final Map<Object, Object> history)
focal_class.return: Object
focal_class.signature: Object realize0(Object pojo, Class<?> type, Type genericType, final Map<Object, Object> history)
focal_class.class_method_signature: PojoUtils.getKeyTypeForMap(Class<?> clazz)
focal_class.full_signature: private static Type getKeyTypeForMap(Class<?> clazz)
focal_class.identifier: getKeyTypeForMap
focal_class.modifiers: private static
focal_class.parameters: (Class<?> clazz)
focal_class.return: Type
focal_class.signature: Type getKeyTypeForMap(Class<?> clazz)
focal_class.class_method_signature: PojoUtils.getGenericClassByIndex(Type genericType, int index)
focal_class.full_signature: private static Type getGenericClassByIndex(Type genericType, int index)
focal_class.identifier: getGenericClassByIndex
focal_class.modifiers: private static
focal_class.parameters: (Type genericType, int index)
focal_class.return: Type
focal_class.signature: Type getGenericClassByIndex(Type genericType, int index)
focal_class.class_method_signature: PojoUtils.newInstance(Class<?> cls)
focal_class.full_signature: private static Object newInstance(Class<?> cls)
focal_class.identifier: newInstance
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cls)
focal_class.return: Object
focal_class.signature: Object newInstance(Class<?> cls)
focal_class.class_method_signature: PojoUtils.getDefaultValue(Class<?> parameterType)
focal_class.full_signature: private static Object getDefaultValue(Class<?> parameterType)
focal_class.identifier: getDefaultValue
focal_class.modifiers: private static
focal_class.parameters: (Class<?> parameterType)
focal_class.return: Object
focal_class.signature: Object getDefaultValue(Class<?> parameterType)
focal_class.class_method_signature: PojoUtils.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: PojoUtils.getField(Class<?> cls, String fieldName)
focal_class.full_signature: private static Field getField(Class<?> cls, String fieldName)
focal_class.identifier: getField
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cls, String fieldName)
focal_class.return: Field
focal_class.signature: Field getField(Class<?> cls, String fieldName)
focal_class.class_method_signature: PojoUtils.isPojo(Class<?> cls)
focal_class.full_signature: public static boolean isPojo(Class<?> cls)
focal_class.identifier: isPojo
focal_class.modifiers: public static
focal_class.parameters: (Class<?> cls)
focal_class.return: boolean
focal_class.signature: boolean isPojo(Class<?> cls)
focal_class.class_method_signature: PojoUtils.updatePropertyIfAbsent(Supplier<T> getterMethod, Consumer<T> setterMethod, T newValue)
focal_class.full_signature: public static void updatePropertyIfAbsent(Supplier<T> getterMethod, Consumer<T> setterMethod, T newValue)
focal_class.identifier: updatePropertyIfAbsent
focal_class.modifiers: public static
focal_class.parameters: (Supplier<T> getterMethod, Consumer<T> setterMethod, T newValue)
focal_class.return: void
focal_class.signature: void updatePropertyIfAbsent(Supplier<T> getterMethod, Consumer<T> setterMethod, T newValue)
focal_method.body: public static Object[] realize(Object[] objs, Class<?>[] types) {
          if (objs.length != types.length) {
              throw new IllegalArgumentException("args.length != types.length");
          }
  
          Object[] dests = new Object[objs.length];
          for (int i = 0; i < objs.length; i++) {
              dests[i] = realize(objs[i], types[i]);
          }
  
          return dests;
      }
focal_method.class_method_signature: PojoUtils.realize(Object[] objs, Class<?>[] types)
focal_method.full_signature: public static Object[] realize(Object[] objs, Class<?>[] types)
focal_method.identifier: realize
focal_method.invocations: realize
focal_method.modifiers: public static
focal_method.parameters: (Object[] objs, Class<?>[] types)
focal_method.return: Object[]
focal_method.signature: Object[] realize(Object[] objs, Class<?>[] types)