gate.util
Class Javac.GJC

java.lang.Object
  |
  +--com.sun.tools.javac.v8.JavaCompiler
        |
        +--gate.util.Javac.GJC
All Implemented Interfaces:
com.sun.tools.javac.v8.code.ClassReader.SourceCompleter
Enclosing class:
Javac

protected static class Javac.GJC
extends com.sun.tools.javac.v8.JavaCompiler


Field Summary
(package private)  Javac.MemoryLog memLog
           
(package private)  Map sources
           
 
Fields inherited from class com.sun.tools.javac.v8.JavaCompiler
attr, chk, classOutput, deprecation, encoding, enter, gen, gj, infer, inputFiles, log, make, printFlat, rs, sourceOutput, syms, todo, verbose, warnunchecked
 
Constructor Summary
(package private) Javac.GJC(Javac.MemoryLog log, com.sun.tools.javac.v8.comp.Symtab syms, com.sun.tools.javac.v8.util.Hashtable options, Map sources)
           
 
Method Summary
 InputStream openSource(String fileName)
          Overidden so that it reads the sources from the provided Map rather than from the disk.
(package private)  void printCount(String kind, int count)
           
 void writeClass(com.sun.tools.javac.v8.code.Symbol.ClassSymbol c)
          Overidden so it loads the compiled class in the gate classloader rather than writting it on the disk.
 
Methods inherited from class com.sun.tools.javac.v8.JavaCompiler
compile, complete, date, errorCount, genCode, make, make, make, noteDeprecated, noteUnchecked, parse, parse, printSource, printVerbose, version
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

sources

Map sources

memLog

Javac.MemoryLog memLog
Constructor Detail

Javac.GJC

Javac.GJC(Javac.MemoryLog log,
          com.sun.tools.javac.v8.comp.Symtab syms,
          com.sun.tools.javac.v8.util.Hashtable options,
          Map sources)
Method Detail

openSource

public InputStream openSource(String fileName)
Overidden so that it reads the sources from the provided Map rather than from the disk.
Overrides:
openSource in class com.sun.tools.javac.v8.JavaCompiler
Parameters:
fileName - the name of the file that should contain the source.
Returns:
an input stream for the java source.

printCount

void printCount(String kind,
                int count)
Overrides:
printCount in class com.sun.tools.javac.v8.JavaCompiler

writeClass

public void writeClass(com.sun.tools.javac.v8.code.Symbol.ClassSymbol c)
                throws IOException
Overidden so it loads the compiled class in the gate classloader rather than writting it on the disk.
Overrides:
writeClass in class com.sun.tools.javac.v8.JavaCompiler
Parameters:
c - the class symbol
Throws:
IOException -