public class TBasicVMDataContext extends Object
TBasicVMDataContext contains context for running TBasicVM.| Constructor and Description |
|---|
TBasicVMDataContext(List<RuntimeOperation> operations,
Map<String,RuntimeOperation> labels,
boolean isMainMethod)
Create a new instance of
TBasicVMDataContext. |
| Modifier and Type | Method and Description |
|---|---|
RuntimeOperation |
getFirstOperation()
Get the first operation in context to execute.
|
RuntimeOperation |
getLabeledOperation(String label)
Get operation by its label.
|
Map<String,RuntimeOperation> |
getLabels()
Get labels register in context.
|
RuntimeOperation |
getNextOperation(RuntimeOperation operation)
Get the next operation in context after the specified.
|
List<RuntimeOperation> |
getOperations()
Get operations in context.
|
boolean |
isLabelInContext(String label)
Is the label in the context.
|
boolean |
isMainMethodContext()
Get whether context is main method's one.
|
public TBasicVMDataContext(List<RuntimeOperation> operations, Map<String,RuntimeOperation> labels, boolean isMainMethod)
TBasicVMDataContext.operations - labels - isMainMethodContext - public RuntimeOperation getFirstOperation()
public RuntimeOperation getLabeledOperation(String label)
label - The label to look for.public Map<String,RuntimeOperation> getLabels()
public RuntimeOperation getNextOperation(RuntimeOperation operation)
operation - The current operation.public List<RuntimeOperation> getOperations()
public boolean isLabelInContext(String label)
label - The label to look for.public boolean isMainMethodContext()
Copyright © 2004–2019 OpenL Tablets. All rights reserved.