[Soot-list] How to get field definitions of a class?
Steven Arzt
Steven.Arzt at cased.de
Wed May 14 16:20:11 EDT 2014
Hi Xin,
If you just need the constant initialization values for a field, you can
look for a ConstantValueTag in SootField.getTags() which is probably easier
than manually analyzing the assignments.
Best regards,
Steven
-----Ursprüngliche Nachricht-----
Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
Im Auftrag von Xin Chen
Gesendet: Mittwoch, 14. Mai 2014 22:17
An: soot-list at CS.McGill.CA
Betreff: [Soot-list] How to get field definitions of a class?
Hello All,
I am having trouble to get field definition of class. I know how to get
field assignment shown in methods by using leftOP, and how to get field
declaration in a class. But, I dont know how to get field
definition/assignment in class. Considering the following example:
Class A{
public static final String example = abc (<= try to get this)
method
xxx{ } ...
}
Basically, I want to get the value of abc.
Please help. Thanks a lot!
Best,
-Xin Chen
_______________________________________________
Soot-list mailing list
Soot-list at CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
More information about the Soot-list
mailing list