Class ParameterisationOf
java.lang.Object
org.ek9lang.compiler.support.ParameterisationOf
- All Implemented Interfaces:
BiFunction<ISymbol, ISymbol, Optional<PossibleGenericSymbol>>
public final class ParameterisationOf
extends Object
implements BiFunction<ISymbol, ISymbol, Optional<PossibleGenericSymbol>>
THE strict test:
target is a parameterisation of EXACTLY this generic - not a sub type or a super type
of it - and so the parameterisation itself (List of String for the generic List), else empty.
Target-typed construction, literal target typing and the iterator-type reading all ask this (front-end
rationalisation B-4a); never re-write isParameterisedType() && getGenericType()...isExactSameType. Was
GenericTypeInfo.parameterisationOf (no-statics lane S3, 2026-10-29).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe parameterisation of exactlygenericthattargetis, else empty.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
ParameterisationOf
public ParameterisationOf()
-
-
Method Details
-
apply
The parameterisation of exactlygenericthattargetis, else empty.- Specified by:
applyin interfaceBiFunction<ISymbol, ISymbol, Optional<PossibleGenericSymbol>>
-