How to find a "FieldRead" expression without "this." in class internal functions on Java. #12790
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I've come across a similar problem. Hope somebody could help with this issue, I'll be really appreciated! |
Beta Was this translation helpful? Give feedback.
-
I find a solution from this issue. It works, but I'm not sure it is the right way. |
Beta Was this translation helpful? Give feedback.
-
Hi @ZQ-Struggle, Thanks for your question. To locate all field reads without a qualifier (i.e., with an implicit import java
from FieldRead v
where not exists(v.getQualifier())
select v |
Beta Was this translation helpful? Give feedback.
Hi @ZQ-Struggle,
Thanks for your question. To locate all field reads without a qualifier (i.e., with an implicit
this
). You can do the following: