js.tinyvm
Class TinyVMTool
java.lang.Object
js.common.AbstractTool
js.tinyvm.TinyVMTool
- Direct Known Subclasses:
- TinyVM
public class TinyVMTool
- extends AbstractTool
Tiny VM.
Method Summary |
void |
dump(Binary binary,
java.io.OutputStream stream,
boolean bigEndian,
java.io.OutputStream debug)
Dump binary to stream. |
Binary |
link(java.lang.String classpath,
java.lang.String[] entryClassNames,
boolean all,
int options,
int debug)
Link classes. |
void |
link(java.lang.String classpath,
java.lang.String[] classes,
boolean all,
java.io.OutputStream stream,
boolean bigEndian,
int options,
int debug,
java.io.OutputStream debugStream)
Execute tiny vm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TinyVMTool
public TinyVMTool()
link
public void link(java.lang.String classpath,
java.lang.String[] classes,
boolean all,
java.io.OutputStream stream,
boolean bigEndian,
int options,
int debug,
java.io.OutputStream debugStream)
throws TinyVMException
- Execute tiny vm.
- Parameters:
classpath
- classpathclasses
- main classes to compileall
- stream
- output stream to write binary tobigEndian
- write big endian output?options
- debug
- true to add debug monitordebugStream
- output stream for debug data
- Throws:
TinyVMException
link
public Binary link(java.lang.String classpath,
java.lang.String[] entryClassNames,
boolean all,
int options,
int debug)
throws TinyVMException
- Link classes.
- Parameters:
classpath
- class pathentryClassNames
- entry class names to linkall
- do not filter classes?options
- debug
-
- Returns:
- binary
- Throws:
TinyVMException
dump
public void dump(Binary binary,
java.io.OutputStream stream,
boolean bigEndian,
java.io.OutputStream debug)
throws TinyVMException
- Dump binary to stream.
- Parameters:
binary
- binarystream
- stream to write tobigEndian
- use big endian encoding?debug
- stream to write debug data to.
- Throws:
TinyVMException