public final class RunEnvironment extends 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() |
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(Object aReturnValue) |
void |
setContext(InstructionSetContext aContext) |
void |
setReturnValue(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 Object getReturnValue()
public void setReturnValue(Object value)
public void quitExpress(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 Exception
context - len - Exceptionpublic OperateData[] popArrayOld(InstructionSetContext context, int len) throws Exception
Exceptionpublic OperateData[] popArrayBackUp(InstructionSetContext context, int len) throws Exception
Exceptionpublic void ensureCapacity(int minCapacity)
Copyright © 2012–2018 Alibaba Group. All rights reserved.