[Soot-list] How to get field definitions of a class?

Xin Chen jsntcx at gmail.com
Wed May 14 16:17:04 EDT 2014


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 don’t 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




More information about the Soot-list mailing list