Class CopyNeedsRuntimeCheck
java.lang.Object
org.ek9lang.compiler.support.copy.CopyNeedsRuntimeCheck
- All Implemented Interfaces:
Predicate<IAggregateSymbol>
THE "can a copy into this owner meet an object of a different class?" - only when the owner may have sub-types. A
CLOSED owner's own
:=:(Owner) only ever meets an Owner, so it skips the check
(PolymorphicCopy). Hold one and ask it.-
Constructor Details
-
CopyNeedsRuntimeCheck
public CopyNeedsRuntimeCheck()
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<IAggregateSymbol>
-