Re: ASM analysis problem

Ricardo Florez <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
I understand you refer as writeable fields to public fields (or protected
depending on the situation) and read only fields to private fields.

You can get the field nodes and check the access attribute in order to know
what the modifier is. 

Check out the Opcodes class:

int ACC_PUBLIC = 0x0001; // class, field, method
int ACC_PRIVATE = 0x0002; // class, field, method
int ACC_PROTECTED = 0x0004; // class, field, method
int ACC_STATIC = 0x0008; // field, method
int ACC_FINAL = 0x0010; // class, field, method

when the field doesn't have an specified accesor, the default value is O.

you have to take into account the possible combinations (e.g. final private,
static public)

Bye,

Ricardo Florez
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.