|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.cf.code.Simulator
public class Simulator
Class which knows how to simulate the effects of executing bytecode.
Note: This class is not thread-safe. If multiple threads need to use a single instance, they must synchronize access explicitly between themselves.
| Constructor Summary | |
|---|---|
Simulator(Machine machine,
ConcreteMethod method)
Constructs an instance. |
|
| Method Summary | |
|---|---|
void |
simulate(ByteBlock bb,
Frame frame)
Simulates the effect of executing the given basic block. |
int |
simulate(int offset,
Frame frame)
Simulates the effect of the instruction at the given offset, by making appropriate calls on the given frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Simulator(Machine machine,
ConcreteMethod method)
machine - non-null; machine to use when simulatingmethod - non-null; method data to use| Method Detail |
|---|
public void simulate(ByteBlock bb,
Frame frame)
bb - non-null; the basic blockframe - non-null; frame to operate on
public int simulate(int offset,
Frame frame)
offset - >= 0; offset of the instruction to simulateframe - non-null; frame to operate on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||