Class CopyRetentionRules
java.lang.Object
org.ek9lang.compiler.support.retention.CopyRetentionRules
- All Implemented Interfaces:
BiPredicate<ScopedSymbol, ScopedSymbol>
THE copy of every RETAINS rule of one callable onto another, parameters matched BY POSITION and re-named as the
target declares them:
return <- receiver-interior as it is, a kept receiver's destination re-named, a
returned or kept parameter (or a part of one) by the target's parameter at the same position. Both directions of
the derivation's unions are this one step: MarkOverriddenBy copies an OVERRIDE's rules UP onto the
declaration a call may dispatch through (D61), MarkInheritedRules copies a SUPER function's rules DOWN onto
a body-less dynamic function that forwards to it (option B slice B, 2026-11-13). Marks only add; answers true when
the target gained a rule. Package-private: hold one of the two signposts, never this directly.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(ScopedSymbol onto, ScopedSymbol from) Record every rule offromononto.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, or
-
Constructor Details
-
CopyRetentionRules
CopyRetentionRules()
-
-
Method Details
-
test
Record every rule offromononto.- Specified by:
testin interfaceBiPredicate<ScopedSymbol, ScopedSymbol>- Returns:
- true when
ontogained a rule
-