|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectautohit.vm.VMExecutableWrapper
This is a wrapper for an executable. It provides helpers and stuff. You shouldn't log from these helps. Also, most exceptions should be propogated, rather than handled, unless it's part of the normal logic.
EPG - Initial - 15apr03
Field Summary | |
VMExecutable |
exec
This is a reference to the executable. |
Constructor Summary | |
VMExecutableWrapper()
Default Constructor. |
Method Summary | |
void |
clean()
Clean the core helper |
void |
create()
Create a fresh and new executable |
void |
emit(VMInstruction i)
Emit an instruction helper |
void |
load(java.io.InputStream is)
Load a VMExecutable from a stream. |
java.lang.String |
nextDump()
This returns the next line of the dump. |
int |
nextIP()
Next IP location, if instruction were to be added |
void |
save(java.io.OutputStream os)
Save a VMExecutable from a stream. |
java.lang.String |
startDump()
This starts a dump of the executable. |
java.lang.String |
toString()
Creates a text dump of the executable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public VMExecutable exec
VMExecutable
Constructor Detail |
public VMExecutableWrapper()
load(InputStream is)
,
create()
Method Detail |
public void emit(VMInstruction i)
VMInstruction
public int nextIP()
VMInstruction
public void clean()
VMInstruction
public void create()
VMExecutable
public void load(java.io.InputStream is) throws java.lang.Exception
any
- exception
java.lang.Exception
VMExecutable
public void save(java.io.OutputStream os) throws java.lang.Exception
any
- exception
java.lang.Exception
VMExecutable
public java.lang.String startDump()
public java.lang.String nextDump()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |