String renameInternalType(String type){
  if (type == null) {
    return null;
  }
  if (type.equals(mOldName)) {
    return mNewName;
  }
  if (mOldBase != mOldName && type.equals(mOldBase)) {
    return mNewBase;
  }
  int pos=type.indexOf('$');
  if (pos == mOldBase.length() && type.startsWith(mOldBase)) {
    return mNewBase + type.substring(pos);
  }
  if (type.indexOf(';') > 0) {
    type=renameTypeDesc(type);
  }
  return type;
}

String renameInternalType ( String type ) { if ( type == null ) { return null ; } if ( type . equals ( mOldName ) ) { return mNewName ; } if ( mOldBase != mOldName && type . equals ( mOldBase ) ) { return mNewBase ; } int pos = type . indexOf ( '$' ) ; if ( pos == mOldBase . length ( ) && type . startsWith ( mOldBase ) ) { return mNewBase + type . substring ( pos ) ; } if ( type . indexOf ( ';' ) > 0 ) { type = renameTypeDesc ( type ) ; } return type ; }
renames an internal type name , e . g . " com . package . myclass " . if the type doesn ' t need to be renamed , returns the input string as - is . < p / > the internal type of some of the methodvisitor turns out to be a type descriptor sometimes so descriptors are renamed too .
