Class IsSelfComparison
java.lang.Object
org.ek9lang.compiler.support.sameness.IsSelfComparison
- All Implemented Interfaces:
BiPredicate<IAggregateSymbol, MethodSymbol>
public final class IsSelfComparison
extends Object
implements BiPredicate<IAggregateSymbol, MethodSymbol>
THE "does this operator compare its owner with ITSELF?" of B18 (
Sameness): an
operator taking exactly one argument of a type the owner is assignable to. 🔑 SELF means "any type this type is
assignable to" - itself, a super, a trait, Any (Fable review F1); ==(Integer) or <(Date)
compare with an unrelated type and are not self-comparisons. Hold one and ask it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(IAggregateSymbol owner, MethodSymbol operator) True for an operator taking exactly one argument of a type the owner is assignable to.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
-
IsSelfComparison
public IsSelfComparison()
-
-
Method Details
-
test
True for an operator taking exactly one argument of a type the owner is assignable to.- Specified by:
testin interfaceBiPredicate<IAggregateSymbol, MethodSymbol>
-