com.github.drinkjava2.jsqlbox.compiler
Class JavaClassObject

java.lang.Object
  extended by javax.tools.SimpleJavaFileObject
      extended by com.github.drinkjava2.jsqlbox.compiler.JavaClassObject
All Implemented Interfaces:
FileObject, JavaFileObject

public class JavaClassObject
extends SimpleJavaFileObject


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Field Summary
protected  ByteArrayOutputStream bos
           
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
JavaClassObject(String name, JavaFileObject.Kind kind)
           
 
Method Summary
 byte[] getBytes()
           
 OutputStream openOutputStream()
           
 
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
 

Field Detail

bos

protected final ByteArrayOutputStream bos
Constructor Detail

JavaClassObject

public JavaClassObject(String name,
                       JavaFileObject.Kind kind)
Method Detail

getBytes

public byte[] getBytes()

openOutputStream

public OutputStream openOutputStream()
                              throws IOException
Specified by:
openOutputStream in interface FileObject
Overrides:
openOutputStream in class SimpleJavaFileObject
Throws:
IOException


Copyright © 2018. All rights reserved.