public final class RunEnvironment
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
programPoint |
| 构造器和说明 |
|---|
RunEnvironment(InstructionSet aInstructionSet,
InstructionSetContext aContext,
boolean aIsTrace) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
void |
clearDataStack() |
void |
ensureCapacity(int minCapacity) |
InstructionSetContext |
getContext() |
int |
getDataStackSize() |
InstructionSet |
getInstructionSet() |
int |
getProgramPoint() |
java.lang.Object |
getReturnValue() |
void |
gotoLastWhenReturn() |
void |
gotoWithOffset(int aOffset) |
void |
initial(InstructionSet aInstructionSet,
InstructionSetContext aContext,
boolean aIsTrace) |
boolean |
isExit() |
boolean |
isTrace() |
OperateData |
peek() |
OperateData |
pop() |
ArraySwap |
popArray(InstructionSetContext context,
int len)
此方法是调用最频繁的,因此尽量精简代码,提高效率
|
OperateData[] |
popArrayBackUp(InstructionSetContext context,
int len) |
OperateData[] |
popArrayOld(InstructionSetContext context,
int len) |
void |
programPointAddOne() |
void |
push(OperateData data) |
void |
quitExpress() |
void |
quitExpress(java.lang.Object aReturnValue) |
void |
setContext(InstructionSetContext aContext) |
void |
setReturnValue(java.lang.Object value) |
public RunEnvironment(InstructionSet aInstructionSet, InstructionSetContext aContext, boolean aIsTrace)
public void initial(InstructionSet aInstructionSet, InstructionSetContext aContext, boolean aIsTrace)
public void clear()
public InstructionSet getInstructionSet()
public InstructionSetContext getContext()
public void setContext(InstructionSetContext aContext)
public boolean isExit()
public java.lang.Object getReturnValue()
public void setReturnValue(java.lang.Object value)
public void quitExpress(java.lang.Object aReturnValue)
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 aOffset)
public ArraySwap popArray(InstructionSetContext context, int len) throws java.lang.Exception
context - len - java.lang.Exceptionpublic OperateData[] popArrayOld(InstructionSetContext context, int len) throws java.lang.Exception
java.lang.Exceptionpublic OperateData[] popArrayBackUp(InstructionSetContext context, int len) throws java.lang.Exception
java.lang.Exceptionpublic void ensureCapacity(int minCapacity)
Copyright © 2012-2021 Alibaba Group. All Rights Reserved.