org.mozilla.javascript
Interface ClassOutput


public interface ClassOutput

This interface is implemented by classes interested in the bytecode generated by the rhino compiler for script objects.

Author:
Andi Vajda
See Also:
Context

Method Summary
 java.io.OutputStream getOutputStream(java.lang.String className, boolean isTopLevel)
           
 

Method Detail

getOutputStream

public java.io.OutputStream getOutputStream(java.lang.String className,
                                            boolean isTopLevel)
                                     throws java.io.IOException
Parameters:
className - the name of the class for which bytecode is ready.
isTopLevel - if true, represents the top-level script being compiled
Returns:
a stream into which to write bytecode.
Since:
1.5 Release 2