Files
codeql/java/ql/test/library-tests/structure/HasObjectMethod.ql
2018-10-11 11:31:37 +02:00

14 lines
325 B
Plaintext

/**
* @name HasMethod
*/
import default
from RefType inheritor, Method method, RefType declarer
where
inheritor.hasMethod(method, declarer) and
inheritor.fromSource() and
declarer.hasName("Object") and
inheritor.getFile().toString() = "Inherit"
select inheritor.toString(), method.toString(), declarer.toString()