public class VolatileClassFile extends SimpleJavaFileObject
JavaFileObject.Kind| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEME
The schema name of this kind of resources.
|
kind, uri| Constructor and Description |
|---|
VolatileClassFile(String binaryName)
Creates a new instance with empty contents.
|
VolatileClassFile(String binaryName,
byte[] contents)
Creates a new instance with the specified contents.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinaryContent()
Returns the contents of this class file.
|
String |
getBinaryName()
Returns the binary name of this class file.
|
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUripublic static final String SCHEME
public VolatileClassFile(String binaryName)
binaryName - the binary name of the target classIllegalArgumentException - if the binary name is invalidpublic VolatileClassFile(String binaryName, byte[] contents)
binaryName - the binary name of the target classcontents - the class file imageIllegalArgumentException - if the binary name is invalidpublic InputStream openInputStream()
openInputStream in interface FileObjectopenInputStream in class SimpleJavaFileObjectpublic OutputStream openOutputStream()
openOutputStream in interface FileObjectopenOutputStream in class SimpleJavaFileObjectpublic String getBinaryName()
public byte[] getBinaryContent()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.