Files
codeql/java/ql/examples/snippets/method_call.ql
2019-08-02 15:27:28 +02:00

17 lines
361 B
Plaintext

/**
* @id java/examples/method-call
* @name Call to method
* @description Finds calls to com.example.Class.methodName
* @tags call
* method
*/
import java
from MethodAccess call, Method method
where
call.getMethod() = method and
method.hasName("methodName") and
method.getDeclaringType().hasQualifiedName("com.example", "Class")
select call