Package org.ek9lang.compiler.phase3
Class RequiredOperatorPresentOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.RequiredOperatorPresentOrError
- All Implemented Interfaces:
Function<CheckOperatorData,
Optional<ISymbol>>
final class RequiredOperatorPresentOrError
extends TypedSymbolAccess
implements Function<CheckOperatorData,Optional<ISymbol>>
To be used with operators on aggregates (except for the is-set ? operator, that has to deal with functions).
This function attempts to locate the method on the aggregate and returns the type of the return variable or empty.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionRequiredOperatorPresentOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
RequiredOperatorPresentOrError
RequiredOperatorPresentOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<CheckOperatorData,
Optional<ISymbol>>
-