spec.benchmarks.compiler
Class SpecFileManager

java.lang.Object
  extended by com.sun.tools.javac.util.JavacFileManager
      extended by spec.benchmarks.compiler.SpecFileManager
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, javax.tools.JavaFileManager, javax.tools.OptionChecker, javax.tools.StandardJavaFileManager

public class SpecFileManager
extends com.sun.tools.javac.util.JavacFileManager


Nested Class Summary
 class SpecFileManager.BaseFileObject
           
 class SpecFileManager.CachedFileObject
           
 class SpecFileManager.InputFileObject
           
 class SpecFileManager.OutputFileObject
           
 
Nested classes/interfaces inherited from class com.sun.tools.javac.util.JavacFileManager
com.sun.tools.javac.util.JavacFileManager.Archive, com.sun.tools.javac.util.JavacFileManager.MissingArchive, com.sun.tools.javac.util.JavacFileManager.RegularFileObject, com.sun.tools.javac.util.JavacFileManager.SymbolArchive, com.sun.tools.javac.util.JavacFileManager.ZipArchive, com.sun.tools.javac.util.JavacFileManager.ZipFileIndexArchive, com.sun.tools.javac.util.JavacFileManager.ZipFileIndexFileObject, com.sun.tools.javac.util.JavacFileManager.ZipFileObject
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileManager
javax.tools.JavaFileManager.Location
 
Field Summary
 
Fields inherited from class com.sun.tools.javac.util.JavacFileManager
charset, ignoreSymbolFile, log, mmappedIO, symbolFilePrefix
 
Constructor Summary
SpecFileManager(com.sun.tools.javac.util.Context context, boolean register, java.nio.charset.Charset charset)
           
 
Method Summary
static java.lang.String generateKey(javax.tools.JavaFileManager.Location location, java.lang.String packageName, java.util.Set<javax.tools.JavaFileObject.Kind> kinds, boolean recurse)
           
 long getChecksum()
           
 javax.tools.JavaFileObject getJavaFileForOutput(javax.tools.JavaFileManager.Location location, java.lang.String className, javax.tools.JavaFileObject.Kind kind, javax.tools.FileObject sibling)
           
 java.lang.Iterable<? extends javax.tools.JavaFileObject> getJavaFileObjectsFromFiles(java.lang.Iterable<? extends java.io.File> files)
           
 java.lang.Iterable<? extends java.io.File> getLocation(javax.tools.JavaFileManager.Location location)
           
 java.lang.String inferBinaryName(javax.tools.JavaFileManager.Location location, javax.tools.JavaFileObject file)
           
 java.lang.String inferBinaryName2(javax.tools.JavaFileManager.Location location, SpecFileManager.CachedFileObject file)
           
 java.lang.Iterable<javax.tools.JavaFileObject> list(javax.tools.JavaFileManager.Location location, java.lang.String packageName, java.util.Set<javax.tools.JavaFileObject.Kind> kinds, boolean recurse)
           
static void preRegister(com.sun.tools.javac.util.Context context, Compiler compiler)
           
static void reset()
           
 
Methods inherited from class com.sun.tools.javac.util.JavacFileManager
close, flush, getClassLoader, getEncodingName, getFileForInput, getFileForInput, getFileForOutput, getFileForOutput, getJavacBaseFileName, getJavacFileName, getJavaFileForInput, getJavaFileObjects, getJavaFileObjects, getJavaFileObjectsFromStrings, getKind, getRegularFile, getRelativeName, getSource, handleOption, hasLocation, isRelativeUri, isSameFile, isSupportedOption, openArchive, preRegister, setContext, setLocation, testName, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecFileManager

public SpecFileManager(com.sun.tools.javac.util.Context context,
                       boolean register,
                       java.nio.charset.Charset charset)
Method Detail

preRegister

public static void preRegister(com.sun.tools.javac.util.Context context,
                               Compiler compiler)

reset

public static void reset()

list

public java.lang.Iterable<javax.tools.JavaFileObject> list(javax.tools.JavaFileManager.Location location,
                                                           java.lang.String packageName,
                                                           java.util.Set<javax.tools.JavaFileObject.Kind> kinds,
                                                           boolean recurse)
                                                    throws java.io.IOException
Specified by:
list in interface javax.tools.JavaFileManager
Overrides:
list in class com.sun.tools.javac.util.JavacFileManager
Throws:
java.io.IOException

generateKey

public static java.lang.String generateKey(javax.tools.JavaFileManager.Location location,
                                           java.lang.String packageName,
                                           java.util.Set<javax.tools.JavaFileObject.Kind> kinds,
                                           boolean recurse)

inferBinaryName

public java.lang.String inferBinaryName(javax.tools.JavaFileManager.Location location,
                                        javax.tools.JavaFileObject file)
Specified by:
inferBinaryName in interface javax.tools.JavaFileManager
Overrides:
inferBinaryName in class com.sun.tools.javac.util.JavacFileManager

inferBinaryName2

public java.lang.String inferBinaryName2(javax.tools.JavaFileManager.Location location,
                                         SpecFileManager.CachedFileObject file)

getLocation

public java.lang.Iterable<? extends java.io.File> getLocation(javax.tools.JavaFileManager.Location location)
Specified by:
getLocation in interface javax.tools.StandardJavaFileManager
Overrides:
getLocation in class com.sun.tools.javac.util.JavacFileManager

getJavaFileObjectsFromFiles

public java.lang.Iterable<? extends javax.tools.JavaFileObject> getJavaFileObjectsFromFiles(java.lang.Iterable<? extends java.io.File> files)
Specified by:
getJavaFileObjectsFromFiles in interface javax.tools.StandardJavaFileManager
Overrides:
getJavaFileObjectsFromFiles in class com.sun.tools.javac.util.JavacFileManager

getJavaFileForOutput

public javax.tools.JavaFileObject getJavaFileForOutput(javax.tools.JavaFileManager.Location location,
                                                       java.lang.String className,
                                                       javax.tools.JavaFileObject.Kind kind,
                                                       javax.tools.FileObject sibling)
                                                throws java.io.IOException
Specified by:
getJavaFileForOutput in interface javax.tools.JavaFileManager
Overrides:
getJavaFileForOutput in class com.sun.tools.javac.util.JavacFileManager
Throws:
java.io.IOException

getChecksum

public long getChecksum()