public byte[] code() { return writer.toByteArray(); }
public byte[] code() { return writer.toByteArray(); }
public byte[] code() { return writer.toByteArray(); }
public byte[] code() { return writer.toByteArray(); }
public byte[] getClassByteArray() { return classWriter.toByteArray(); }
public byte[] getClassByteArray() { return classWriter.toByteArray(); }
protected byte[] endClassOffline(ClassWriter cw) { cw.visitEnd(); byte[] code = cw.toByteArray(); if (DEBUG) CheckClassAdapter.verify(new ClassReader(code), false, new PrintWriter(System.err)); return code; }
protected byte[] endClassOffline(ClassWriter cw) { cw.visitEnd(); byte[] code = cw.toByteArray(); if (DEBUG) CheckClassAdapter.verify(new ClassReader(code), false, new PrintWriter(System.err)); return code; }
private void writeClass(String classname, File destination, ClassWriter writer) throws IOException { // verify the class byte[] bytecode = writer.toByteArray(); if (VERIFY_CLASSFILES) CheckClassAdapter.verify(new ClassReader(bytecode), false, new PrintWriter(System.err)); writeClassFile(destination, bytecode, classname); }
private void writeClass(String classname, File destination, ClassWriter writer) throws IOException { // verify the class byte[] bytecode = writer.toByteArray(); if (VERIFY_CLASSFILES) CheckClassAdapter.verify(new ClassReader(bytecode), false, new PrintWriter(System.err)); writeClassFile(destination, bytecode, classname); }
protected Class endClass(ClassWriter cw, String name) { cw.visitEnd(); final byte[] code = cw.toByteArray(); if (DEBUG) CheckClassAdapter.verify(new ClassReader(code), classLoader, false, new PrintWriter(System.err)); return classLoader.defineClass(name, code); }
protected Class endClass(ClassWriter cw, String name) { cw.visitEnd(); byte[] code = cw.toByteArray(); if (DEBUG) CheckClassAdapter.verify(new ClassReader(code), false, new PrintWriter(System.err)); return classLoader.defineClass(name, code); }
private String getClassName() { if (cv instanceof ClassWriter) { return new ClassReader(((ClassWriter) cv).toByteArray()).getClassName(); } return "(unknown class)"; }
protected Class endClass(ClassWriter cw, String name) { cw.visitEnd(); final byte[] code = cw.toByteArray(); if (DEBUG) CheckClassAdapter.verify(new ClassReader(code), classLoader, false, new PrintWriter(System.err)); return classLoader.defineClass(name, code); }
private String getClassName() { if (cv instanceof ClassWriter) { return new ClassReader(((ClassWriter) cv).toByteArray()).getClassName(); } return "(unknown class)"; }
public void dumpClass(PrintStream out) { PrintWriter pw = new PrintWriter(out); try { TraceClassVisitor tcv = new TraceClassVisitor(pw); new ClassReader(classWriter.toByteArray()).accept(tcv, 0); } finally { pw.close(); } }
protected Class endClass(ClassWriter cw, String name) { cw.visitEnd(); byte[] code = cw.toByteArray(); if (DEBUG) CheckClassAdapter.verify(new ClassReader(code), false, new PrintWriter(System.err)); return classLoader.defineClass(name, code); }
public void dumpClass(PrintStream out) { PrintWriter pw = new PrintWriter(out); try { TraceClassVisitor tcv = new TraceClassVisitor(pw); new ClassReader(classWriter.toByteArray()).accept(tcv, 0); } finally { pw.close(); } }
public Class<?> loadClass(JRubyClassLoader classLoader) throws ClassNotFoundException { classLoader.defineClass(c(getClassname()), classWriter.toByteArray()); return classLoader.loadClass(c(getClassname())); }
public Class<?> loadClass(JRubyClassLoader classLoader) throws ClassNotFoundException { classLoader.defineClass(c(getClassname()), classWriter.toByteArray()); return classLoader.loadClass(c(getClassname())); }