org.prorefactor.refactor.source
Class SourceFile

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

public class SourceFile
extends java.lang.Object

Represents a source file with a File (get "canonical name" from that) and with a reference to the first Atom object for that file. A SourceFile and its Atoms should be considered immutable - modify the Tokens which reference the Atoms - not that Atoms themselves. When working with multiple SourceFile objects (i.e. almost always), fetch a SourceFile object by going through a SourceFilePool.


Constructor Summary
SourceFile(java.io.File file)
           
 
Method Summary
 void addReference(java.lang.Object o)
          Add a reference (an IncludeExpansion) to the list of known references to this source file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFile

public SourceFile(java.io.File file)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addReference

public void addReference(java.lang.Object o)
Add a reference (an IncludeExpansion) to the list of known references to this source file.

Parameters:
o - The IncludeExpansion object which references this source file. This gives us a list of possible "{include.i}" references in the source code which can expand this file.


Copyright © 2008 Joanju Software. All Rights Reserved.