Class ValidServiceOperationOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase2.ValidServiceOperationOrError
- All Implemented Interfaces:
BiConsumer<ServiceOperationSymbol, EK9Parser.ServiceOperationDeclarationContext>
final class ValidServiceOperationOrError
extends RuleSupport
implements BiConsumer<ServiceOperationSymbol, EK9Parser.ServiceOperationDeclarationContext>
Check that a service operation complies with EK9 rules and return types etc.
Also, incoming parameters are limited in type and therefore checked in here.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionValidServiceOperationOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new Check Service OperationInstr function. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServiceOperationSymbol operation, EK9Parser.ServiceOperationDeclarationContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
ValidServiceOperationOrError
ValidServiceOperationOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new Check Service OperationInstr function.
-
-
Method Details
-
accept
public void accept(ServiceOperationSymbol operation, EK9Parser.ServiceOperationDeclarationContext ctx) - Specified by:
acceptin interfaceBiConsumer<ServiceOperationSymbol, EK9Parser.ServiceOperationDeclarationContext>
-