getOverridden abstract method
Returns all members of mixins, superclasses, and interfaces that a member
with the given name
, defined in this element, would override; or null
if no members would be overridden.
Transitive overrides are not included unless there is a direct path to
them. For example, if classes A
, B
, and C
are defined as follows:
class A { void m() {} }
class B extends A { void m() {} }
class C extends B { void m() {} }
Then a getOverridden query for name m
on class C
would return just a
single result: the element for B.m
.
However, if the example were changed so that class C
both extends B
and implements A
, then a list containing both A.m
and B.m
would be
returned.
Implementation
List<ExecutableElement2>? getOverridden(Name name);