[java] : detecting function within a declared function that has particular name #10474
Unanswered
ahmed-farid-dev
asked this question in
Q&A
Replies: 1 comment
-
You can use predicate test() {
exists(MethodAccess equals, Method login |
equals.getMethod().hasName("equals") and
login.hasName("login") and
equals.getEnclosingCallable() = login
)
} Of course, feel free to further restrict |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, if you can help me to detect a function inside a declared function that has a particular name like this:
I wanna detect equals() function and in the same time matching the name of the declared function in this case login().
Beta Was this translation helpful? Give feedback.
All reactions