ua.gradsoft.termware.debug
Class BytecodeOutputFileObject

java.lang.Object
  extended by javax.tools.SimpleJavaFileObject
      extended by ua.gradsoft.termware.debug.BytecodeOutputFileObject
All Implemented Interfaces:
FileObject, JavaFileObject

public class BytecodeOutputFileObject
extends SimpleJavaFileObject

FileObject for in-memory compilation

Author:
rssh

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Field Summary
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
BytecodeOutputFileObject(String name)
          Creates a new instance of BytecodeOutputFileObject
 
Method Summary
 byte[] getBytes()
          get resulting bytes.
 OutputStream openOutputStream()
          get output stream.
 
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BytecodeOutputFileObject

public BytecodeOutputFileObject(String name)
                         throws URISyntaxException
Creates a new instance of BytecodeOutputFileObject

Throws:
URISyntaxException
Method Detail

openOutputStream

public OutputStream openOutputStream()
get output stream.

Specified by:
openOutputStream in interface FileObject
Overrides:
openOutputStream in class SimpleJavaFileObject

getBytes

public byte[] getBytes()
get resulting bytes.