public JavaField export ( JavaClass cl , JavaClass target ) { JavaField field = new JavaField ( ) ; field . setName ( _name ) ; field . setDescriptor ( _descriptor ) ; field . setAccessFlags ( _accessFlags ) ; target . getConstantPool ( ) . addUTF8 ( _name ) ; target . getConstantPool ( ) . addUTF8 ( _descriptor ) ; for ( int i = 0 ; i < _attributes . size ( ) ; i ++ ) { Attribute attr = _attributes . get ( i ) ; field . addAttribute ( attr . export ( cl , target ) ) ; } return field ; }
exports the field