edu.rice.cs.drjava.project
Class ProjectFileParserFacade

java.lang.Object
  extended by edu.rice.cs.drjava.project.ProjectFileParserFacade
Direct Known Subclasses:
ProjectFileParser, XMLProjectFileParser

public class ProjectFileParserFacade
extends Object

Abstract project file parser.


Field Summary
protected  File _projectFile
           
protected  boolean _xmlProjectFile
           
private static Log LOG
           
static ProjectFileParserFacade ONLY
          Singleton instance of ProjectFileParserFacade
 
Constructor Summary
protected ProjectFileParserFacade()
           
 
Method Summary
protected  ProjectFileIR fixup(ProjectFileIR pfir)
          Here we check versions, and see if we need to apply a fixup to account for specify main-class as a classname instead of as a file.
 ProjectFileIR parse(File projFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONLY

public static final ProjectFileParserFacade ONLY
Singleton instance of ProjectFileParserFacade


_projectFile

protected File _projectFile

_xmlProjectFile

protected boolean _xmlProjectFile

LOG

private static Log LOG
Constructor Detail

ProjectFileParserFacade

protected ProjectFileParserFacade()
Method Detail

parse

public ProjectFileIR parse(File projFile)
                    throws IOException,
                           FileNotFoundException,
                           MalformedProjectFileException
Parameters:
projFile - the file to parse
Returns:
the project file IR
Throws:
IOException
FileNotFoundException
MalformedProjectFileException

fixup

protected ProjectFileIR fixup(ProjectFileIR pfir)
Here we check versions, and see if we need to apply a fixup to account for specify main-class as a classname instead of as a file. All DrJava revisions before 4782 need to be fixed up. We also fixup all projects that have "unknown" versions.

Parameters:
pfir - - the ProjectProfile to fixup, if needed.