@Test public void test_makeEmptyClass() throws Exception { Wrapper.getWrapper(EmptyServiceImpl.class); }
public static Wrapper getWrapper(Class<?> c) { while( ClassGenerator.isDynamicClass(c) ) c = c.getSuperclass(); if( c == Object.class ) return OBJECT_WRAPPER; Wrapper ret = WRAPPER_MAP.get(c); if( ret == null ) { ret = makeWrapper(c); WRAPPER_MAP.put(c,ret); } return ret; }
Wrapper { public static Wrapper getWrapper(Class<?> c) { while( ClassGenerator.isDynamicClass(c) ) c = c.getSuperclass(); if( c == Object.class ) return OBJECT_WRAPPER; Wrapper ret = WRAPPER_MAP.get(c); if( ret == null ) { ret = makeWrapper(c); WRAPPER_MAP.put(c,ret); } return ret; } }
Wrapper { public static Wrapper getWrapper(Class<?> c) { while( ClassGenerator.isDynamicClass(c) ) c = c.getSuperclass(); if( c == Object.class ) return OBJECT_WRAPPER; Wrapper ret = WRAPPER_MAP.get(c); if( ret == null ) { ret = makeWrapper(c); WRAPPER_MAP.put(c,ret); } return ret; }  }
Wrapper { public static Wrapper getWrapper(Class<?> c) { while( ClassGenerator.isDynamicClass(c) ) c = c.getSuperclass(); if( c == Object.class ) return OBJECT_WRAPPER; Wrapper ret = WRAPPER_MAP.get(c); if( ret == null ) { ret = makeWrapper(c); WRAPPER_MAP.put(c,ret); } return ret; }  static Wrapper getWrapper(Class<?> c); abstract String[] getPropertyNames(); abstract Class<?> getPropertyType(String pn); abstract boolean hasProperty(String name); abstract Object getPropertyValue(Object instance, String pn); abstract void setPropertyValue(Object instance, String pn, Object pv); Object[] getPropertyValues(Object instance, String[] pns); void setPropertyValues(Object instance, String[] pns, Object[] pvs); abstract String[] getMethodNames(); abstract String[] getDeclaredMethodNames(); boolean hasMethod(String name); abstract Object invokeMethod(Object instance, String mn, Class<?>[] types, Object[] args); }
Wrapper { public static Wrapper getWrapper(Class<?> c) { while( ClassGenerator.isDynamicClass(c) ) c = c.getSuperclass(); if( c == Object.class ) return OBJECT_WRAPPER; Wrapper ret = WRAPPER_MAP.get(c); if( ret == null ) { ret = makeWrapper(c); WRAPPER_MAP.put(c,ret); } return ret; }  static Wrapper getWrapper(Class<?> c); abstract String[] getPropertyNames(); abstract Class<?> getPropertyType(String pn); abstract boolean hasProperty(String name); abstract Object getPropertyValue(Object instance, String pn); abstract void setPropertyValue(Object instance, String pn, Object pv); Object[] getPropertyValues(Object instance, String[] pns); void setPropertyValues(Object instance, String[] pns, Object[] pvs); abstract String[] getMethodNames(); abstract String[] getDeclaredMethodNames(); boolean hasMethod(String name); abstract Object invokeMethod(Object instance, String mn, Class<?>[] types, Object[] args);  }