266267268269270271272273274275276
fieldType, cw ); cw.visitEnd(); return cw.toByteArray(); } /** * Builds the class header */
93949596979899100101102103
this.buildToString( cw, edef ); cw.visitEnd(); byte[] serializedClass = cw.toByteArray(); return serializedClass; }
619620621622623624625626627628629
mv.visitEnd(); } cw.visitEnd(); return cw.toByteArray(); } protected void initializeDynamicTypeStructures( MethodVisitor mv, String wrapperName, ClassDefinition coreDef ) { if ( coreDef.isFullTraiting() ) {
154155156157158159160161162163164
buildCommonMethods( cw, name ); cw.visitEnd(); return cw.toByteArray(); }
491492493494495496497498499500501
buildExtendedMethods( cw, trait, core, mask ); cw.visitEnd(); return cw.toByteArray(); } private <K extends Annotation> K getAnnotation( Class klass, Class<K> annotationClass ) { if ( klass.equals( Thing.class ) ) {
128129130131132133134135136137138
} if (staticInitializer != null) { staticInitializer.write(this, cw); } cw.visitEnd(); bytecode = cw.toByteArray(); if (DUMP_GENERATED_CLASSES) { dumpGeneratedClass(bytecode); } } return bytecode;
102103104105106107108109110111112
cw.visitEnd(); } catch ( Exception e ) { e.printStackTrace(); } return cw.toByteArray(); } protected void init( ClassDefinition classDef ) { }
249250251252253254255256257258259
getterMethod, cw ); cw.visitEnd(); return cw.toByteArray(); } private byte[] dumpWriter(final Class< ? > originalClass, final String className, final Method getterMethod,
278279280281282283284285286287288
fieldType, cw ); cw.visitEnd(); return cw.toByteArray(); } /** * Builds the class header *
949596979899100101102103104