public static String attributeNameToString(Attribute a) {

    ConstantPool pool = a.getConstantPool();
    int conIndex = a.getNameIndex();
    Constant c = pool.getConstant(conIndex);
    String attName = ((ConstantUtf8) c).getBytes();
    return attName;
  }
public static String attributeNameToString(Attribute a) {

    ConstantPool pool = a.getConstantPool();
    int conIndex = a.getNameIndex();
    Constant c = pool.getConstant(conIndex);
    String attName = ((ConstantUtf8) c).getBytes();
    return attName;
  }
public static String attributeNameToString ( Attribute a ) { ConstantPool pool = a . getConstantPool ( ) ; int conIndex = a . getNameIndex ( ) ; Constant c = pool . getConstant ( conIndex ) ; String attName = ( ( ConstantUtf8 ) c ) . getBytes ( ) ; return attName ; }
Return the attribute name for the specified attribute, looked up in the original class file
ConstantPool.

@param a the attribute
@return the attribute name for the specified attribute
Return the attribute name for the specified attribute looked up in the original class file ConstantPool .