294295296297298299300301302303304
CodeAttr code = m.startCode(); code.pushScope(); code.emitPushThis(); code.emitInvokeSpecial(objectCtor); code.emitReturn(); code.popScope(); m = c.addMethod("main", "([Ljava/lang/String;)V", Access.PUBLIC | Access.STATIC); code = m.startCode(); code.pushScope();
304305306307308309310311312313314
code.pushScope(); code.emitGetStatic(outField); code.emitPushString("Hello world!"); code.emitInvokeVirtual(printlnMethod); code.emitReturn(); code.popScope(); return c.writeToArray(); } static byte[] csgBytecodeHelloWorld() {