I haven't done it, but I believe you would need to use AttributeReader. If you look at the BCEL source in Attribute.readAttribute, you'll see where your AttributeReader will be called. Also, you can investigate the other classes that handle well-known attributes such as SourceFile, Code, ExceptionTable, etc.
-----Original Message----- From: Camila Rocha To: [EMAIL PROTECTED] Sent: 2/8/04 6:16 PM Subject: Reading a private attribute's value Hello, I'm building a ClassLoader using Javassist to insert assertions into a class. The problem is that, when I'm writing pos conditions, I have to read the value of a private attribute, and Javassist doesn't have this function. Can I do this using BCEL? Do I have to use the class AttributeReader? I didn't understand how it works. Thank you! Camila Rocha ------------------------------------------------------------------------ Master Student in Computer Science Institute of Computing - UNICAMP - Brazil www.ic.unicamp.br/~ra022247 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
