protected void generateFields(){
  for (  SootField f : sc.getFields()) {
    String name=f.getName();
    String desc=toTypeDesc(f.getType());
    String sig=null;
    if (f.hasTag("SignatureTag")) {
      SignatureTag genericSignature=(SignatureTag)f.getTag("SignatureTag");
      sig=genericSignature.getSignature();
    }
    Object value=getDefaultValue(f);
    int access=getModifiers(f.getModifiers(),f);
    FieldVisitor fv=cv.visitField(access,name,desc,sig,value);
    if (fv != null) {
      generateAnnotations(fv,f);
      generateAttributes(fv,f);
      fv.visitEnd();
    }
  }
}

protected void generateFields ( ) { for ( SootField f : sc . getFields ( ) ) { String name = f . getName ( ) ; String desc = toTypeDesc ( f . getType ( ) ) ; String sig = null ; if ( f . hasTag ( "SignatureTag" ) ) { SignatureTag genericSignature = ( SignatureTag ) f . getTag ( "SignatureTag" ) ; sig = genericSignature . getSignature ( ) ; } Object value = getDefaultValue ( f ) ; int access = getModifiers ( f . getModifiers ( ) , f ) ; FieldVisitor fv = cv . visitField ( access , name , desc , sig , value ) ; if ( fv != null ) { generateAnnotations ( fv , f ) ; generateAttributes ( fv , f ) ; fv . visitEnd ( ) ; } } }
emits the bytecode for all fields of the class
