public class JavaMemoryObject extends Object implements JavaFileObject
JavaFileObject.Kind| Constructor and Description |
|---|
JavaMemoryObject(String fileName,
JavaFileObject.Kind fileKind) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete() |
boolean |
equals(Object o) |
Modifier |
getAccessLevel() |
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
byte[] |
getClassBytes() |
JavaFileObject.Kind |
getKind() |
long |
getLastModified() |
String |
getName() |
NestingKind |
getNestingKind() |
int |
hashCode() |
boolean |
isNameCompatible(String simpleName,
JavaFileObject.Kind fileKind) |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
Reader |
openReader(boolean ignoreEncodingErrors) |
Writer |
openWriter() |
String |
toString() |
URI |
toUri() |
public JavaMemoryObject(String fileName, JavaFileObject.Kind fileKind)
public byte[] getClassBytes()
public final URI toUri()
toUri in interface FileObjectpublic final String getName()
getName in interface FileObjectpublic final InputStream openInputStream() throws IOException
openInputStream in interface FileObjectIOExceptionpublic final OutputStream openOutputStream() throws IOException
openOutputStream in interface FileObjectIOExceptionpublic final Reader openReader(boolean ignoreEncodingErrors) throws IOException
openReader in interface FileObjectIOExceptionpublic final CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
getCharContent in interface FileObjectIOExceptionpublic final Writer openWriter() throws IOException
openWriter in interface FileObjectIOExceptionpublic final long getLastModified()
getLastModified in interface FileObjectpublic final boolean delete()
delete in interface FileObjectpublic final JavaFileObject.Kind getKind()
getKind in interface JavaFileObjectpublic final boolean isNameCompatible(String simpleName, JavaFileObject.Kind fileKind)
isNameCompatible in interface JavaFileObjectpublic final NestingKind getNestingKind()
getNestingKind in interface JavaFileObjectpublic final Modifier getAccessLevel()
getAccessLevel in interface JavaFileObjectCopyright © 2016. All rights reserved.