|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.refactor.source.SourceFile
public class SourceFile
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 |
---|
public SourceFile(java.io.File file) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void addReference(java.lang.Object o)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |