Class ResolveMethodOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.ResolveMethodOrError
- All Implemented Interfaces:
BiFunction<IToken, MethodSearchInScope, MethodSymbol>
final class ResolveMethodOrError
extends TypedSymbolAccess
implements BiFunction<IToken, MethodSearchInScope, MethodSymbol>
Given a search for a method from an aggregate - and include supers/traits etc.,
this function will try and locate the method. But if not found or ambiguous it will issue errors.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionResolveMethodOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create function with provided errorListener etc. -
Method Summary
Modifier and TypeMethodDescriptionapply(IToken errorLocation, MethodSearchInScope searchOnAggregate) Methods inherited from class TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbolMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
ResolveMethodOrError
ResolveMethodOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create function with provided errorListener etc.
-
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<IToken, MethodSearchInScope, MethodSymbol>
-