js.tinyvm
Class TinyVMTool

java.lang.Object
  extended by js.common.AbstractTool
      extended by js.tinyvm.TinyVMTool
Direct Known Subclasses:
TinyVM

public class TinyVMTool
extends AbstractTool

Tiny VM.


Field Summary
 
Fields inherited from class js.common.AbstractTool
_monitors
 
Constructor Summary
TinyVMTool()
           
 
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 js.common.AbstractTool
addProgressMonitor, removeProgressMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TinyVMTool

public TinyVMTool()
Method Detail

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 - classpath
classes - main classes to compile
all -
stream - output stream to write binary to
bigEndian - write big endian output?
options -
debug - true to add debug monitor
debugStream - 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 path
entryClassNames - entry class names to link
all - 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 - binary
stream - stream to write to
bigEndian - use big endian encoding?
debug - stream to write debug data to.
Throws:
TinyVMException