discussions Search Results · repo:github/codeql path:docs/codeql "MethodAccess" is:public
Filter by
25 results (161 ms)
25 results
ingithub/codeql (press backspace or delete to remove):
... extends Method {
RatpackPromiseMapMethod() {
getDeclaringType() instanceof RatpackPromise and
hasName( map )
}
}
class RatpackPromiseMapMethodAccess extends MethodAccess ...
:
Something like this should work for you:
import java
predicate isLoggerCall(MethodAccess ma) {
ma.getReceiverType().getQualifiedName() = org.slf4j.Logger and
(ma.getMethod().getName() = info ...
:
... ::Node source){
source instanceof RemoteFlowSource
}
override predicate isSink(DataFlow::Node sink){
exists(MethodAccess ma| ma.getMethod() instanceof BeanSinkMethod | sink.asExpr ...
:
... ().hasQualifiedName( java.util , HashMap , hash )
and node.asParameter().getPosition() = 0
}
override predicate isSink(DataFlow::Node node) {
exists(MethodAccess ma ...