org.anarres.cpp
Class FileLexerSource

java.lang.Object
  extended by org.anarres.cpp.Source
      extended by org.anarres.cpp.LexerSource
          extended by org.anarres.cpp.FileLexerSource
All Implemented Interfaces:
Closeable, Iterable<Token>

public class FileLexerSource
extends LexerSource

A Source which lexes a file. The input is buffered.

See Also:
Source

Constructor Summary
FileLexerSource(File file)
           
FileLexerSource(File file, String path)
          Creates a new Source for lexing the given File.
FileLexerSource(String path)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.anarres.cpp.LexerSource
close, getColumn, getLine, token
 
Methods inherited from class org.anarres.cpp.Source
error, iterator, setListener, skipline, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileLexerSource

public FileLexerSource(File file,
                       String path)
                throws IOException
Creates a new Source for lexing the given File. Preprocessor directives are honoured within the file.

Throws:
IOException

FileLexerSource

public FileLexerSource(File file)
                throws IOException
Throws:
IOException

FileLexerSource

public FileLexerSource(String path)
                throws IOException
Throws:
IOException
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007 Shevek, Anarres. All Rights Reserved.