ASM analysis problem
João Barbosa <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm new with ASM and I'm having some problems, event after doing a full search
on the web.
My goal is to get a list of field names from a class X that are writable, i.e.
that have writes, and another list of those that are readOnly;
The only thing that I have right now is this code, where the only thing that i
can do is getting the opcode of methods instructions.
MethodNode method = (MethodNode) methods.get(i);
for (int x = 0; x < method.localVariables.size(); ++x) {
Object insn = method.localVariables.get(i);
int opcode = ((AbstractInsnNode) insn).getOpcode();
}
example of what I want
class X{
int y;
public void method1(){
y=x;
}
}
result:
y -> writable
x -> readOnly
Does anyone can help me with this? I solve this problem with BCEL. However, ASM
is much faster but to me is much harder too.
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