public class SimpleOperation extends Operation.Abstract
This class represents an Operation supported by a SimpleOperations module. Each SimpleOperation has a name, an integer code, a reference to the module implementing the SimpleOperation and an optional Filter to select between overloaded SimpleOperations.
Modifier and Type | Class and Description |
---|---|
class |
SimpleOperation.Reference
Reference.
|
Operation.Abstract, Operation.OverloadException
Constructor and Description |
---|
SimpleOperation(String name,
SimpleOperations module,
Enum<?> code,
Optional<Filter> filter)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
OperationReference |
newReference(Compiler compiler)
Returns a new reference to this operation.
|
public SimpleOperation(@Nonnull String name, @Nonnull SimpleOperations module, @Nonnull Enum<?> code, @Nonnull Optional<Filter> filter)
name
- Name of the operation.module
- Module implementing the operation.code
- Operation code.filter
- Optional filter to apply to match the Operation operands.public OperationReference newReference(Compiler compiler)
newReference
in interface Operation
newReference
in class Operation.Abstract
compiler
- The compiler generating the program.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.