public class TBasicVM extends Object
TBasicVM class executes Algorithm logic. Besides execution of operations list, the class provides
logic to support GOTO to main method and errors processing.| Constructor and Description |
|---|
TBasicVM(IOpenClass tbasicType,
List<RuntimeOperation> operations,
Map<String,RuntimeOperation> labels)
Create an instance of
TBasicVM initialized with main Algorithm method operations and labels
register. |
| Modifier and Type | Method and Description |
|---|---|
Object |
run(List<RuntimeOperation> methodSteps,
Map<String,RuntimeOperation> methodLabels,
TBasicContextHolderEnv environment)
Run sub-method of Algorithm.
|
Object |
run(TBasicContextHolderEnv environment)
Run the method of Algorithm.
|
public TBasicVM(IOpenClass tbasicType, List<RuntimeOperation> operations, Map<String,RuntimeOperation> labels)
TBasicVM initialized with main Algorithm method operations and labels
register.operations - labels - public Object run(List<RuntimeOperation> methodSteps, Map<String,RuntimeOperation> methodLabels, TBasicContextHolderEnv environment)
TBasicVM instance will execute the provided operations list. methodSteps - The list of operations to run.methodLabels - The labels register for sub-method.environment - The environment for execution.public Object run(TBasicContextHolderEnv environment)
TBasicVM instance will run operations which are considered in current
context. run(List, Map, TBasicContextHolderEnv).environment - The environment for execution.Copyright © 2004–2019 OpenL Tablets. All rights reserved.