org.prorefactor.refactor.source
Class SourceFilePool

java.lang.Object
  extended by org.prorefactor.refactor.source.SourceFilePool

public class SourceFilePool
extends java.lang.Object

We may work with two or more CompileUnit objects at the same time, and those may reference some of the same files. We only want to load those "shared" files into memory once.


Constructor Summary
SourceFilePool()
           
 
Method Summary
 SourceFile getSourceFile(java.io.File file)
          Fetch a SourceFile object from a File object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFilePool

public SourceFilePool()
Method Detail

getSourceFile

public SourceFile getSourceFile(java.io.File file)
                         throws java.io.IOException
Fetch a SourceFile object from a File object. You should work with canonicalpath when reasonable.

Throws:
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.