public Project getProject() { return _owner.getProject(); }
public Project getProject() { return _owner.getProject(); }
private BCMethod getBCMethod(Method meth) { BCClass bc = pc.getProject().loadClass(meth.getDeclaringClass()); return bc.getDeclaredMethod(meth.getName(), meth.getParameterTypes()); }
private BCMethod getBCMethod(Method meth) { BCClass bc = pc.getProject().loadClass(meth.getDeclaringClass()); return bc.getDeclaredMethod(meth.getName(), meth.getParameterTypes()); }
private BCMethod getBCMethod(Method meth) { BCClass bc = pc.getProject().loadClass(meth.getDeclaringClass()); return bc.getDeclaredMethod(meth.getName(), meth.getParameterTypes()); }
private BCMethod getBCMethod(Method meth) { BCClass bc = pc.getProject().loadClass(meth.getDeclaringClass()); return bc.getDeclaredMethod(meth.getName(), meth.getParameterTypes()); }
private BCMethod getBCMethod(Method meth) { BCClass bc = pc.getProject().loadClass(meth.getDeclaringClass()); return bc.getDeclaredMethod(meth.getName(), meth.getParameterTypes()); }
/** * Load the class represented by the given bytecode. */ public static Class loadBCClass(BCClass bc, ClassLoader loader) { BCClassLoader bcloader = AccessController .doPrivileged(J2DoPrivHelper.newBCClassLoaderAction(bc .getProject(), loader)); try { Class c = Class.forName(bc.getName(), true, bcloader); bc.getProject().clear(); return c; } catch (Throwable t) { throw new GeneralException(bc.getName()).setCause(t); } }
/** * Load the class represented by the given bytecode. */ public static Class loadBCClass(BCClass bc, ClassLoader loader) { BCClassLoader bcloader = AccessController .doPrivileged(J2DoPrivHelper.newBCClassLoaderAction(bc .getProject(), loader)); try { Class c = Class.forName(bc.getName(), true, bcloader); bc.getProject().clear(); return c; } catch (Throwable t) { throw new GeneralException(bc.getName()).setCause(t); } }
/** * Load the class represented by the given bytecode. */ public static Class loadBCClass(BCClass bc, ClassLoader loader) { BCClassLoader bcloader = AccessController .doPrivileged(J2DoPrivHelper.newBCClassLoaderAction(bc .getProject(), loader)); try { Class c = Class.forName(bc.getName(), true, bcloader); bc.getProject().clear(); return c; } catch (Throwable t) { throw new GeneralException(bc.getName()).setCause(t); } }
/** * Load the class represented by the given bytecode. */ public static Class loadBCClass(BCClass bc, ClassLoader loader) { BCClassLoader bcloader = AccessController .doPrivileged(J2DoPrivHelper.newBCClassLoaderAction(bc .getProject(), loader)); try { Class c = Class.forName(bc.getName(), true, bcloader); bc.getProject().clear(); return c; } catch (Throwable t) { throw new GeneralException(bc.getName()).setCause(t); } }
/** * Load the class represented by the given bytecode. */ public static Class loadBCClass(BCClass bc, ClassLoader loader) { BCClassLoader bcloader = (BCClassLoader) AccessController .doPrivileged(J2DoPrivHelper.newBCClassLoaderAction(bc .getProject(), loader)); try { Class c = Class.forName(bc.getName(), true, bcloader); bc.getProject().clear(); return c; } catch (Throwable t) { throw new GeneralException(bc.getName()).setCause(t); } }
/** * Return the component type of this class, or null if not an array. */ public BCClass getComponentBC() { String componentName = getComponentName(); if (componentName == null) return null; return getProject().loadClass(componentName, getClassLoader()); }
/** * Return the bytecode of the superclass of this class, or * null for types without superclasses. */ public BCClass getSuperclassBC() { String name = getSuperclassName(); if (name == null) return null; return getProject().loadClass(name, getClassLoader()); }
/** * Return the bytecode for the declared interfaces of this class, or an * empty array if none. */ public BCClass[] getDeclaredInterfaceBCs() { String[] names = getDeclaredInterfaceNames(); BCClass[] types = new BCClass[names.length]; for (int i = 0; i < names.length; i++) types[i] = getProject().loadClass(names[i], getClassLoader()); return types; }
/** * Return the bytecode of the superclass of this class, or * null for types without superclasses. */ public BCClass getSuperclassBC() { String name = getSuperclassName(); if (name == null) return null; return getProject().loadClass(name, getClassLoader()); }
/** * Return the bytecode for the declared interfaces of this class, or an * empty array if none. */ public BCClass[] getDeclaredInterfaceBCs() { String[] names = getDeclaredInterfaceNames(); BCClass[] types = new BCClass[names.length]; for (int i = 0; i < names.length; i++) types[i] = getProject().loadClass(names[i], getClassLoader()); return types; }
/** * Return the component type of this class, or null if not an array. */ public BCClass getComponentBC() { String componentName = getComponentName(); if (componentName == null) return null; return getProject().loadClass(componentName, getClassLoader()); }
/** * Set the type of class being loaded. * * @return the first Instruction of the block added by setting the type * @throws IllegalStateException if type has already been set */ public Instruction setClass(String name) { name = _class.getProject().getNameCache().getExternalForm(name, false); setClassName(name, getWrapperClass(name)); return _ins; }
/** * Set the type of class being loaded. * * @return the first Instruction of the block added by setting the type * @throws IllegalStateException if type has already been set */ public Instruction setClass(String name) { name = _class.getProject().getNameCache().getExternalForm(name, false); setClassName(name, getWrapperClass(name)); return _ins; }