public class InMemoryJavaFileObject extends SimpleJavaFileObject implements JavaFileObject
JavaFileObject.Kind
kind, uri
Constructor and Description |
---|
InMemoryJavaFileObject(String className,
CharSequence content)
Constructor to initialize uri of object from string
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAccessLevel, getKind, getNestingKind, isNameCompatible
delete, getLastModified, getName, openInputStream, openOutputStream, openReader, openWriter, toUri
public InMemoryJavaFileObject(String className, CharSequence content)
className
- file namecontent
- code of filepublic CharSequence getCharContent(boolean ignoreEncodingErrors)
getCharContent
in interface FileObject
getCharContent
in class SimpleJavaFileObject
Copyright © 2014. All rights reserved.