129130131132133134135136137138139
} if (staticInitializer != null) { staticInitializer.write(this, cw); } cw.visitEnd(); bytecode = cw.toByteArray(); if (DUMP_GENERATED_CLASSES) { dumpGeneratedClass(bytecode); } } return bytecode;
949596979899100101102103104
this.buildToString( cw, edef ); cw.visitEnd(); byte[] serializedClass = cw.toByteArray(); return serializedClass; }
215216217218219220221222223224225
buildExtensionMethods( cw, name, core ); cw.visitEnd(); return cw.toByteArray(); }
188189190191192193194195196197198
this.buildToString( cw, classDef ); cw.visitEnd(); return cw.toByteArray(); } /** * Defines the class header for the given class definition *
172173174175176177178179180181182
226227228229230231232233234235236
getterMethod, cw ); cw.visitEnd(); return cw.toByteArray(); } private byte[] dumpWriter(final Class< ? > originalClass, final String className, final Method getterMethod,
255256257258259260261262263264265
fieldType, cw ); cw.visitEnd(); return cw.toByteArray(); } /** * Builds the class header *
616617618619620621622623624625626
mv.visitEnd(); } cw.visitEnd(); return cw.toByteArray(); } protected void initializeDynamicTypeStructures( MethodVisitor mv, String wrapperName, ClassDefinition coreDef ) { if ( coreDef.isFullTraiting() ) {
99100101102103104105106107108109
cw.visitEnd(); } catch ( Exception e ) { e.printStackTrace(); } return cw.toByteArray(); } protected void init( ClassDefinition classDef ) { }
132133134135136137138139140141142