Class ValidOperatorOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase2.ValidOperatorOrError
- All Implemented Interfaces:
BiConsumer<MethodSymbol, EK9Parser.OperatorDeclarationContext>
final class ValidOperatorOrError
extends RuleSupport
implements BiConsumer<MethodSymbol, EK9Parser.OperatorDeclarationContext>
Checks operators from various contexts, typically this is delegated to other functions.
Those functions do the detail check. This does not check service operations that are marked as operators.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionValidOperatorOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new operation checker. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MethodSymbol methodSymbol, EK9Parser.OperatorDeclarationContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
ValidOperatorOrError
ValidOperatorOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new operation checker.
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<MethodSymbol, EK9Parser.OperatorDeclarationContext>
-