public class BigDecimalOperations extends SimpleOperations
| Modifier and Type | Field and Description |
|---|---|
static Filter |
EITHER_BIG_DECIMAL
Either must be big decimals.
|
static Filter |
TOP_BIG_DECIMAL
Top must be a big decimal.
|
static Filter |
TOP_LONG_BIG_DECIMAL
Top must be an integer over a big decimal.
|
| Constructor and Description |
|---|
BigDecimalOperations() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Task task,
SimpleOperation.Reference reference)
Executes an operation code within the context of a task.
|
static BigDecimal |
popBigDecimalValue(Stack stack)
Pops the big decimal at the top of the stack.
|
protected void |
setUp()
Sets up operations.
|
getParams, getRegistrations, getThisLogger, setUppublic static final Filter EITHER_BIG_DECIMAL
public static final Filter TOP_BIG_DECIMAL
public static final Filter TOP_LONG_BIG_DECIMAL
public static BigDecimal popBigDecimalValue(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.