edu.rice.cs.drjava.project
Class ProjectFileParserFacade
java.lang.Object
edu.rice.cs.drjava.project.ProjectFileParserFacade
- Direct Known Subclasses:
- ProjectFileParser, XMLProjectFileParser
public class ProjectFileParserFacade
- extends Object
Abstract project file parser.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ONLY
public static final ProjectFileParserFacade ONLY
- Singleton instance of ProjectFileParserFacade
_projectFile
protected File _projectFile
_xmlProjectFile
protected boolean _xmlProjectFile
LOG
private static Log LOG
ProjectFileParserFacade
protected ProjectFileParserFacade()
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.