com.jeffpalm.javaparser
Class FileParserFactory

java.lang.Object
  extended by com.jeffpalm.javaparser.ParserFactory
      extended by com.jeffpalm.javaparser.FileParserFactory

public class FileParserFactory
extends ParserFactory

Generates new parsers for a java file

Version:
$Id: FileParserFactory.java,v 1.3 2005/12/04 15:38:50 jeffpalm Exp $
Author:
Chris Seguin, Mike Atkinson

Constructor Summary
FileParserFactory(java.io.File file)
          Constructor for a file ParserFactory
 
Method Summary
protected  java.lang.String getKey()
          A method to return some key identifying the file that is being parsed
protected  java.io.Reader getReader()
          Return the input stream
 
Methods inherited from class com.jeffpalm.javaparser.ParserFactory
getAbstractSyntaxTree, getParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileParserFactory

public FileParserFactory(java.io.File file)
Constructor for a file ParserFactory

Parameters:
file - the file that we want to create a parser for
Method Detail

getReader

protected java.io.Reader getReader()
Return the input stream

Specified by:
getReader in class ParserFactory
Returns:
the input stream

getKey

protected java.lang.String getKey()
A method to return some key identifying the file that is being parsed

Specified by:
getKey in class ParserFactory
Returns:
the identifier