com.kirgor.enklib.compile
Class MemoryJavaFileObject
java.lang.Object
javax.tools.SimpleJavaFileObject
com.kirgor.enklib.compile.MemoryJavaFileObject
- All Implemented Interfaces:
- FileObject, JavaFileObject
public class MemoryJavaFileObject
- extends SimpleJavaFileObject
JavaFileObject, which stores source code in memory.
| Methods inherited from class javax.tools.SimpleJavaFileObject |
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri |
MemoryJavaFileObject
public MemoryJavaFileObject(String className,
String code)
- Creates instance of
MemoryJavaFileObject.
- Parameters:
className - Name of class to store.code - Source code.
getCharContent
public CharSequence getCharContent(boolean ignoreEncodingErrors)
-
- Specified by:
getCharContent in interface FileObject- Overrides:
getCharContent in class SimpleJavaFileObject
Copyright © 2013. All Rights Reserved.