public class JavaMemClass extends SimpleJavaFileObject
JavaFileObject.Kind
Modifier and Type | Field and Description |
---|---|
protected ByteArrayOutputStream |
classByteArrayOutputStream |
kind, uri
Constructor and Description |
---|
JavaMemClass(String name,
JavaFileObject.Kind kind,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
Class |
loadThisClass() |
OutputStream |
openOutputStream() |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUri
protected final ByteArrayOutputStream classByteArrayOutputStream
public JavaMemClass(String name, JavaFileObject.Kind kind, ClassLoader classLoader)
public byte[] getBytes()
public OutputStream openOutputStream() throws IOException
openOutputStream
in interface FileObject
openOutputStream
in class SimpleJavaFileObject
IOException
public Class loadThisClass()
Copyright © 2020 Voovan. All rights reserved.