public class ComplexOperations extends SimpleOperations
| Modifier and Type | Field and Description |
|---|---|
static Filter |
EITHER_COMPLEX
Either must be complex.
|
static Filter |
TOP_COMPLEX
Top must be a complex.
|
| Constructor and Description |
|---|
ComplexOperations() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Task task,
SimpleOperation.Reference reference)
Executes an operation code within the context of a task.
|
static Complex |
popComplexValue(Stack stack)
Pops the complex at the top of the stack.
|
protected void |
setUp()
Sets up operations.
|
getParams, getRegistrations, getThisLogger, setUppublic static final Filter TOP_COMPLEX
public static final Filter EITHER_COMPLEX
public static Complex popComplexValue(Stack stack) throws Stack.AccessException
stack - The stack.Stack.AccessException - When appropriate.public void execute(Task task, SimpleOperation.Reference reference) throws Task.ExecuteException, Stack.AccessException
Must be implemented by each module.
execute in class SimpleOperationstask - Task executing the program.reference - Reference to the operation.Task.ExecuteException - when appropriate.Stack.AccessException - When raised by the stack.protected void setUp()
throws Operation.OverloadException
setUp in class OperationsOperation.OverloadException - From Operation.register(java.util.Map<java.lang.String, org.rvpf.processor.engine.rpn.operation.Operation>).Copyright © 2003-2019 Serge Brisson. All Rights Reserved.