Skip to content

How to find a "FieldRead" expression without "this." in class internal functions on Java. #12790

Answered by jketema
ZQ-Struggle asked this question in Q&A
Discussion options

You must be logged in to vote

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:

import java

from FieldRead v
where not exists(v.getQualifier())
select v

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@atorralba
Comment options

@ZQ-Struggle
Comment options

Comment options

You must be logged in to vote
1 reply
@ZQ-Struggle
Comment options

Answer selected by ZQ-Struggle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants