com.kirgor.enklib.compile
Class MemoryJavaClassObject
java.lang.Object
javax.tools.SimpleJavaFileObject
com.kirgor.enklib.compile.MemoryJavaClassObject
- All Implemented Interfaces:
- FileObject, JavaFileObject
public class MemoryJavaClassObject
- extends SimpleJavaFileObject
| Methods inherited from class javax.tools.SimpleJavaFileObject |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUri |
stream
protected final ByteArrayOutputStream stream
MemoryJavaClassObject
public MemoryJavaClassObject(String className,
JavaFileObject.Kind kind)
- Creates instance of
MemoryJavaClassObject.
- Parameters:
className - Name of class to store.kind - Kind of the data.
getBytes
public byte[] getBytes()
- Gets compiled byte code.
getClassName
public String getClassName()
- Gets the name of stored class.
openOutputStream
public OutputStream openOutputStream()
throws IOException
-
- Specified by:
openOutputStream in interface FileObject- Overrides:
openOutputStream in class SimpleJavaFileObject
- Throws:
IOException
Copyright © 2013. All Rights Reserved.