com.kirgor.enklib.compile
Class MemoryJavaFileManager

java.lang.Object
  extended by javax.tools.ForwardingJavaFileManager
      extended by com.kirgor.enklib.compile.MemoryJavaFileManager
All Implemented Interfaces:
Closeable, Flushable, JavaFileManager, OptionChecker

public class MemoryJavaFileManager
extends ForwardingJavaFileManager

Manages the final stage of compiler pipeline and directs results into memory object.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileManager
JavaFileManager.Location
 
Field Summary
 
Fields inherited from class javax.tools.ForwardingJavaFileManager
fileManager
 
Constructor Summary
MemoryJavaFileManager(StandardJavaFileManager standardManager)
          Creates instance of MemoryJavaFileManager.
 
Method Summary
 ClassLoader getClassLoader(JavaFileManager.Location location)
          
 JavaFileObject getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling)
          
 
Methods inherited from class javax.tools.ForwardingJavaFileManager
close, flush, getFileForInput, getFileForOutput, getJavaFileForInput, handleOption, hasLocation, inferBinaryName, isSameFile, isSupportedOption, list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryJavaFileManager

public MemoryJavaFileManager(StandardJavaFileManager standardManager)
Creates instance of MemoryJavaFileManager.

Parameters:
standardManager - Standard manager, which will be used as base manager.
Method Detail

getClassLoader

public ClassLoader getClassLoader(JavaFileManager.Location location)

Specified by:
getClassLoader in interface JavaFileManager
Overrides:
getClassLoader in class ForwardingJavaFileManager

getJavaFileForOutput

public JavaFileObject getJavaFileForOutput(JavaFileManager.Location location,
                                           String className,
                                           JavaFileObject.Kind kind,
                                           FileObject sibling)
                                    throws IOException

Specified by:
getJavaFileForOutput in interface JavaFileManager
Overrides:
getJavaFileForOutput in class ForwardingJavaFileManager
Throws:
IOException


Copyright © 2013. All Rights Reserved.