Class CallableWithArgumentsOf
java.lang.Object
org.ek9lang.compiler.support.operators.CallableWithArgumentsOf
- All Implemented Interfaces:
BiPredicate<MethodSymbol, MethodSymbol>
public final class CallableWithArgumentsOf
extends Object
implements BiPredicate<MethodSymbol, MethodSymbol>
THE "can the existing operator be called with the candidate default's arguments?" - each candidate parameter type
assignable to the existing one's, same count. What
DefaultOperatorCoverage
and the bare-default completion (OperationFactory) ask, by SIGNATURE, never by name. Hold one and ask it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(MethodSymbol existing, MethodSymbol candidate) True when the existing operator can be called with the candidate default's arguments.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
-
CallableWithArgumentsOf
public CallableWithArgumentsOf()
-
-
Method Details
-
test
True when the existing operator can be called with the candidate default's arguments.- Specified by:
testin interfaceBiPredicate<MethodSymbol, MethodSymbol>- Parameters:
existing- an operator the type declarescandidate- the operator adefault operatorwould give it
-