public class StackFrame extends Object
StackFrame
represents frame in a control stack.
Holds references to parameters, local variables and return values.Modifier and Type | Field and Description |
---|---|
StackFrame |
prevStackFrame |
BValue[] |
returnValues |
Constructor and Description |
---|
StackFrame(CallableUnitInfo callableUnitInfo,
WorkerInfo workerInfo,
int retAddrs,
int[] retRegIndexes) |
StackFrame(CallableUnitInfo callableUnitInfo,
WorkerInfo workerInfo,
int retAddrs,
int[] retRegIndexes,
BValue[] returnValues) |
StackFrame(PackageInfo packageInfo,
int retAddrs,
int[] retRegIndexes) |
Modifier and Type | Method and Description |
---|---|
CallableUnitInfo |
getCallableUnitInfo() |
double[] |
getDoubleRegs() |
BMap<String,BValue> |
getErrorThrown() |
int[] |
getIntRegs() |
long[] |
getLongRegs() |
PackageInfo |
getPackageInfo() |
BRefType[] |
getRefRegs() |
int |
getRetAddrs() |
String[] |
getStringRegs() |
WorkerInfo |
getWorkerInfo() |
void |
markedAsReturned() |
void |
setDoubleRegs(double[] doubleRegs) |
void |
setErrorThrown(BMap<String,BValue> errorThrown) |
void |
setIntRegs(int[] intRegs) |
void |
setLongRegs(long[] longRegs) |
void |
setRefRegs(BRefType[] refRegs) |
void |
setStringRegs(String[] stringRegs) |
boolean |
tryReturn() |
public BValue[] returnValues
public StackFrame prevStackFrame
public StackFrame(PackageInfo packageInfo, int retAddrs, int[] retRegIndexes)
public StackFrame(CallableUnitInfo callableUnitInfo, WorkerInfo workerInfo, int retAddrs, int[] retRegIndexes)
public StackFrame(CallableUnitInfo callableUnitInfo, WorkerInfo workerInfo, int retAddrs, int[] retRegIndexes, BValue[] returnValues)
public long[] getLongRegs()
public double[] getDoubleRegs()
public String[] getStringRegs()
public int[] getIntRegs()
public BRefType[] getRefRegs()
public void setLongRegs(long[] longRegs)
public void setDoubleRegs(double[] doubleRegs)
public void setStringRegs(String[] stringRegs)
public void setIntRegs(int[] intRegs)
public void setRefRegs(BRefType[] refRegs)
public int getRetAddrs()
public CallableUnitInfo getCallableUnitInfo()
public PackageInfo getPackageInfo()
public WorkerInfo getWorkerInfo()
public boolean tryReturn()
public void markedAsReturned()
Copyright © 2018 WSO2. All rights reserved.