151152153154155156157158159160161
buildCommonMethods( cw, name ); cw.visitEnd(); return cw.toByteArray(); }
9596979899100101102103104105
cw.visitEnd(); } catch ( Exception e ) { e.printStackTrace(); } return cw.toByteArray(); } protected void init( ClassDefinition classDef ) { }
487488489490491492493494495496497
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 ) ) {
130131132133134135136137138139140
} if (staticInitializer != null) { staticInitializer.write(this, cw); } cw.visitEnd(); bytecode = cw.toByteArray(); if (DUMP_GENERATED_CLASSES) { dumpGeneratedClass(bytecode); } } return bytecode;
395396397398399400401402403404405
buildExtendedMethods( cw, getTrait(), core, mask ); cw.visitEnd(); return cw.toByteArray(); } private boolean hasImpl( Trait annTrait ) { return annTrait != null && ! annTrait.impl().equals( Trait.NullMixin.class );
129130131132133134135136137138139
234235236237238239240241242243244
getterMethod, cw ); cw.visitEnd(); return cw.toByteArray(); } private byte[] dumpWriter(final Class< ? > originalClass, final String className, final Method getterMethod,
263264265266267268269270271272273
fieldType, cw ); cw.visitEnd(); return cw.toByteArray(); } /** * Builds the class header *
949596979899100101102103104
this.buildToString( cw, edef ); cw.visitEnd(); byte[] serializedClass = cw.toByteArray(); return serializedClass; }