Class ArgumentRule
java.lang.Object
org.ek9lang.compiler.support.retention.ArgumentRule
- All Implemented Interfaces:
BiPredicate<ScopedSymbol, Integer>
THE argument question the argument readers ask (
RetainsArgument, HandsBackArgument,
KeepsArgumentBeyondResult, DefinitelyKeepsArgument, MayKeepArgument), so they differ only
in which rules count (wanted) and in whether the unknown opt-out answers for them
(unknownCounts): does a rule of callee (declared, derived, or the generic's own) that matches
wanted take the argument given at parameterIndex as its source? With unknownCounts, a callee
declaring unknown answers yes - also for an index it does not declare.-
Constructor Summary
ConstructorsConstructorDescriptionArgumentRule(Predicate<org.ek9lang.tooling.construct.RetentionRule> wanted, boolean unknownCounts) -
Method Summary
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
-
ArgumentRule
ArgumentRule(Predicate<org.ek9lang.tooling.construct.RetentionRule> wanted, boolean unknownCounts)
-
-
Method Details
-
test
- Specified by:
testin interfaceBiPredicate<ScopedSymbol, Integer>
-