public final class RunEnvironment
extends java.lang.Object
| Constructor and Description |
|---|
RunEnvironment(InstructionSet instructionSet,
InstructionSetContext instructionSetContext,
boolean isTrace,
ExecuteTimeout executeTimeOut) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearDataStack() |
void |
ensureCapacity(int minCapacity) |
InstructionSetContext |
getContext() |
int |
getDataStackSize() |
ExecuteTimeout |
getExecuteTimeOut() |
InstructionSet |
getInstructionSet() |
int |
getProgramPoint() |
java.lang.Object |
getReturnValue() |
void |
gotoLastWhenReturn() |
void |
gotoWithOffset(int offset) |
void |
initial(InstructionSet instructionSet,
InstructionSetContext instructionSetContext,
boolean isTrace,
ExecuteTimeout executeTimeOut) |
boolean |
isExecuteTimeout() |
boolean |
isExit() |
boolean |
isTrace() |
OperateData |
peek() |
OperateData |
pop() |
ArraySwap |
popArray(int len)
此方法是调用最频繁的,因此尽量精简代码,提高效率
|
void |
programPointAddOne() |
void |
push(OperateData data) |
void |
quitExpress() |
void |
quitExpress(java.lang.Object returnValue) |
void |
setContext(InstructionSetContext instructionSetContext) |
void |
setReturnValue(java.lang.Object value) |
public RunEnvironment(InstructionSet instructionSet, InstructionSetContext instructionSetContext, boolean isTrace, ExecuteTimeout executeTimeOut)
public void initial(InstructionSet instructionSet, InstructionSetContext instructionSetContext, boolean isTrace, ExecuteTimeout executeTimeOut)
public void clear()
public InstructionSet getInstructionSet()
public InstructionSetContext getContext()
public void setContext(InstructionSetContext instructionSetContext)
public boolean isExit()
public java.lang.Object getReturnValue()
public void setReturnValue(java.lang.Object value)
public void quitExpress(java.lang.Object returnValue)
public void quitExpress()
public boolean isTrace()
public int getProgramPoint()
public void programPointAddOne()
public void gotoLastWhenReturn()
public int getDataStackSize()
public void push(OperateData data)
public OperateData peek()
public OperateData pop()
public void clearDataStack()
public void gotoWithOffset(int offset)
public ArraySwap popArray(int len)
len - public void ensureCapacity(int minCapacity)
public boolean isExecuteTimeout()
public ExecuteTimeout getExecuteTimeOut()
Copyright © 2012-2024 Alibaba Group. All Rights Reserved.