Class OverriddenDeclarations
- All Implemented Interfaces:
BiFunction<IAggregateSymbol, MethodSymbol, List<MethodSymbol>>
A method overrides exactly the parent declarations (the super class's and each trait's,
IAggregateSymbol.getDirectSupertypes()) with EXACTLY its signature: the same name and exactly the same
parameter types (MethodSymbol.hasSameSignatureAs(MethodSymbol); Steve, 2026-10-02, N06), taken from each parent's
getAllEffectiveMethods() - the override-collapsed view, where a declaration further down a parent's own
chain replaces what it overrides.
Two decisions read it, and must agree: phase 3's override rule (MethodOverridesOrError: is 'override'
required, is it wrong) and phase 7's covariant bridges
(NarrowedReturnTypes, N07: the return types a back end must also make
the override reachable under, since a JVM method's identity includes its return type).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(IAggregateSymbol aggregate, MethodSymbol method) Every parent declaration with exactly this method's signature - at most one per parent - private ones included: a private parent member is not inherited, so not overridden, and the caller decides what that means.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
OverriddenDeclarations
public OverriddenDeclarations()
-
-
Method Details
-
apply
Every parent declaration with exactly this method's signature - at most one per parent - private ones included: a private parent member is not inherited, so not overridden, and the caller decides what that means.- Specified by:
applyin interfaceBiFunction<IAggregateSymbol, MethodSymbol, List<MethodSymbol>>
-