com.kirgor.enklib.compile
Class MemoryJavaFileObject

java.lang.Object
  extended by javax.tools.SimpleJavaFileObject
      extended by com.kirgor.enklib.compile.MemoryJavaFileObject
All Implemented Interfaces:
FileObject, JavaFileObject

public class MemoryJavaFileObject
extends SimpleJavaFileObject

JavaFileObject, which stores source code in memory.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Field Summary
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
MemoryJavaFileObject(String className, String code)
          Creates instance of MemoryJavaFileObject.
 
Method Summary
 CharSequence getCharContent(boolean ignoreEncodingErrors)
          
 
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryJavaFileObject

public MemoryJavaFileObject(String className,
                            String code)
Creates instance of MemoryJavaFileObject.

Parameters:
className - Name of class to store.
code - Source code.
Method Detail

getCharContent

public CharSequence getCharContent(boolean ignoreEncodingErrors)

Specified by:
getCharContent in interface FileObject
Overrides:
getCharContent in class SimpleJavaFileObject


Copyright © 2013. All Rights Reserved.