/** * Set the superclass of this class. */ public void setSuperclass(Class type) { if (type == null) setSuperclass((String) null); else setSuperclass(type.getName()); }
/** * Set the superclass of this class. */ public void setSuperclass(Class type) { if (type == null) setSuperclass((String) null); else setSuperclass(type.getName()); }
/** * Set the superclass of this class. */ public void setSuperclass(BCClass type) { if (type == null) setSuperclass((String) null); else setSuperclass(type.getName()); }
/** * Set the superclass of this class. */ public void setSuperclass(BCClass type) { if (type == null) setSuperclass((String) null); else setSuperclass(type.getName()); }
protected void declareClasses(BCClass bc) { super.declareClasses(bc); bc.declareInterface(DynamicPCData.class); bc.setSuperclass(AbstractPCData.class); }
protected void declareClasses(BCClass bc) { super.declareClasses(bc); bc.declareInterface(DynamicPCData.class); bc.setSuperclass(AbstractPCData.class); }
protected void declareClasses(BCClass bc) { super.declareClasses(bc); bc.declareInterface(DynamicPCData.class); bc.setSuperclass(AbstractPCData.class); }
protected void declareClasses(BCClass bc) { super.declareClasses(bc); bc.declareInterface(DynamicPCData.class); bc.setSuperclass(AbstractPCData.class); }
protected void declareClasses(BCClass bc) { super.declareClasses(bc); bc.declareInterface(DynamicPCData.class); bc.setSuperclass(AbstractPCData.class); }
/** * Generate a new class with the given name. If a non-null parent class * is given, it will be set as the superclass. */ public Class generateClass(String name, Class parent) { BCClass bc = _project.loadClass(name, null); if (parent != null) bc.setSuperclass(parent); bc.addDefaultConstructor(); try { return Class.forName(name, false, _loader); } catch (ClassNotFoundException cnfe) { throw new InternalException(cnfe.toString(), cnfe); } }
/** * Generate a new class with the given name. If a non-null parent class * is given, it will be set as the superclass. */ public Class generateClass(String name, Class parent) { BCClass bc = _project.loadClass(name, null); if (parent != null) bc.setSuperclass(parent); bc.addDefaultConstructor(); try { return Class.forName(name, false, _loader); } catch (ClassNotFoundException cnfe) { throw new InternalException(cnfe.toString(), cnfe); } }
/** * Generate a new class with the given name. If a non-null parent class * is given, it will be set as the superclass. */ public Class generateClass(String name, Class parent) { BCClass bc = _project.loadClass(name, null); if (parent != null) bc.setSuperclass(parent); bc.addDefaultConstructor(); try { return Class.forName(name, false, _loader); } catch (ClassNotFoundException cnfe) { throw new InternalException(cnfe.toString(), cnfe); } }
/** * Generate a new class with the given name. If a non-null parent class * is given, it will be set as the superclass. */ public Class generateClass(String name, Class parent) { BCClass bc = _project.loadClass(name, null); if (parent != null) bc.setSuperclass(parent); bc.addDefaultConstructor(); try { return Class.forName(name, false, _loader); } catch (ClassNotFoundException cnfe) { throw new InternalException(cnfe.toString(), cnfe); } }
/** * Generate a new class with the given name. If a non-null parent class * is given, it will be set as the superclass. */ public Class generateClass(String name, Class parent) { BCClass bc = _project.loadClass(name, null); if (parent != null) bc.setSuperclass(parent); bc.addDefaultConstructor(); try { return Class.forName(name, false, _loader); } catch (ClassNotFoundException cnfe) { throw new InternalException(cnfe.toString(), cnfe); } }
/** * Generate the bytecode for a calendar proxy for the given type. */ protected BCClass generateProxyCalendarBytecode(Class type, boolean runtime) { assertNotFinal(type); Project project = new Project(); BCClass bc = AccessController.doPrivileged(J2DoPrivHelper .loadProjectClassAction(project, getProxyClassName(type, runtime))); bc.setSuperclass(type); bc.declareInterface(ProxyCalendar.class); delegateConstructors(bc, type); addProxyMethods(bc, true); addProxyCalendarMethods(bc, type); proxySetters(bc, type); addWriteReplaceMethod(bc, runtime); return bc; }
/** * Generate the bytecode for a date proxy for the given type. */ protected BCClass generateProxyDateBytecode(Class type, boolean runtime) { assertNotFinal(type); Project project = new Project(); BCClass bc = AccessController.doPrivileged(J2DoPrivHelper .loadProjectClassAction(project, getProxyClassName(type, runtime))); bc.setSuperclass(type); bc.declareInterface(ProxyDate.class); delegateConstructors(bc, type); addProxyMethods(bc, true); addProxyDateMethods(bc, type); proxySetters(bc, type); addWriteReplaceMethod(bc, runtime); return bc; }
/** * Generate the bytecode for a calendar proxy for the given type. */ protected BCClass generateProxyCalendarBytecode(Class type, boolean runtime) { assertNotFinal(type); Project project = new Project(); BCClass bc = AccessController.doPrivileged(J2DoPrivHelper .loadProjectClassAction(project, getProxyClassName(type, runtime))); bc.setSuperclass(type); bc.declareInterface(ProxyCalendar.class); delegateConstructors(bc, type); addProxyMethods(bc, true); addProxyCalendarMethods(bc, type); proxySetters(bc, type); addWriteReplaceMethod(bc, runtime); return bc; }
/** * Generate the bytecode for a date proxy for the given type. */ protected BCClass generateProxyDateBytecode(Class type, boolean runtime) { assertNotFinal(type); Project project = new Project(); BCClass bc = AccessController.doPrivileged(J2DoPrivHelper .loadProjectClassAction(project, getProxyClassName(type, runtime))); bc.setSuperclass(type); bc.declareInterface(ProxyDate.class); delegateConstructors(bc, type); addProxyMethods(bc, true); addProxyDateMethods(bc, type); proxySetters(bc, type); addWriteReplaceMethod(bc, runtime); return bc; }
/** * Generate the bytecode for a calendar proxy for the given type. */ protected BCClass generateProxyCalendarBytecode(Class type, boolean runtime) { assertNotFinal(type); Project project = new Project(); BCClass bc = (BCClass) AccessController.doPrivileged(J2DoPrivHelper .loadProjectClassAction(project, getProxyClassName(type, runtime))); bc.setSuperclass(type); bc.declareInterface(ProxyCalendar.class); delegateConstructors(bc, type); addProxyMethods(bc, true); addProxyCalendarMethods(bc, type); proxySetters(bc, type); addWriteReplaceMethod(bc, runtime); return bc; }
/** * Generate the bytecode for a map proxy for the given type. */ protected BCClass generateProxyMapBytecode(Class type, boolean runtime) { assertNotFinal(type); Project project = new Project(); BCClass bc = AccessController.doPrivileged(J2DoPrivHelper .loadProjectClassAction(project, getProxyClassName(type, runtime))); bc.setSuperclass(type); bc.declareInterface(ProxyMap.class); delegateConstructors(bc, type); addProxyMethods(bc, false); addProxyMapMethods(bc, type); Class<? extends ProxyMaps> mapProxyClassType = ProxyConcurrentMaps.class; proxyRecognizedMethods(bc, type, mapProxyClassType, ProxyMap.class); proxySetters(bc, type); addWriteReplaceMethod(bc, runtime); return bc; }