mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Java: Improve MemberRefExpr.getReceiverType() documentation
This commit is contained in:
@@ -1227,8 +1227,9 @@ class MemberRefExpr extends FunctionalExpr, @memberref {
|
||||
|
||||
/**
|
||||
* Gets the receiver type whose member this expression refers to. The result might not be
|
||||
* the type which actually declares the member (makes a difference for inherited non-overridden
|
||||
* methods).
|
||||
* the type which actually declares the member. For example, for the member reference `ArrayList::toString`,
|
||||
* this predicate has the result `java.util.ArrayList`, the type explicitly referred to, while
|
||||
* `getReferencedCallable` will have `java.util.AbstractCollection.toString` as result, which `ArrayList` inherits.
|
||||
*/
|
||||
RefType getReceiverType() {
|
||||
exists(Stmt stmt, Expr resultExpr |
|
||||
|
||||
Reference in New Issue
Block a user