Class DelegatedMember
java.lang.Object
org.ek9lang.compiler.support.DelegatedMember
- All Implemented Interfaces:
Function<MethodSymbol, Optional<MethodSymbol>>
public final class DelegatedMember
extends Object
implements Function<MethodSymbol, Optional<MethodSymbol>>
THE member a delegated trait's forwarder calls (
with trait of Keeper by impl: Forwarder.keep(n) is
impl.keep(n)): the delegate field's type's member of the forwarder's name and signature. Phase 7's
DelegationGenerator emits that call and the RETAINS derivation copies that member's rules onto the forwarder
(the derivation audit's M5, 2026-11-15) - one resolution, so what is derived is what runs. Empty when the method is
no forwarder or the member cannot be found. Stateless: hold one.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(MethodSymbol forwarder) onDelegate(ISymbol delegateField, String methodName, MethodSymbol wrapper) The member ofdelegateField's type that the forwarderwrapper(namedmethodName) calls.
-
Constructor Details
-
DelegatedMember
public DelegatedMember()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<MethodSymbol, Optional<MethodSymbol>>
-
onDelegate
public Optional<MethodSymbol> onDelegate(ISymbol delegateField, String methodName, MethodSymbol wrapper) The member ofdelegateField's type that the forwarderwrapper(namedmethodName) calls.
-