Class NearestAbove
java.lang.Object
org.ek9lang.compiler.support.operators.NearestAbove
- All Implemented Interfaces:
BiFunction<IAggregateSymbol, Function<IAggregateSymbol, Optional<MethodSymbol>>, Optional<MethodSymbol>>
public final class NearestAbove
extends Object
implements BiFunction<IAggregateSymbol, Function<IAggregateSymbol, Optional<MethodSymbol>>, Optional<MethodSymbol>>
THE nearest declaration above an aggregate that a level test finds - asked of each super class in turn, nearest
first (
SuperClassChain). A trait ends the walk: its operators are not inherited through the class chain.
The general form of NearestOperatorAbove and NearestSelfComparisonAbove. Hold one and apply it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(IAggregateSymbol aggregate, Function<IAggregateSymbol, Optional<MethodSymbol>> declaredOn) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
NearestAbove
public NearestAbove()
-
-
Method Details
-
apply
public Optional<MethodSymbol> apply(IAggregateSymbol aggregate, Function<IAggregateSymbol, Optional<MethodSymbol>> declaredOn) - Specified by:
applyin interfaceBiFunction<IAggregateSymbol, Function<IAggregateSymbol, Optional<MethodSymbol>>, Optional<MethodSymbol>>
-