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 .