jltools.frontend
Class SourceLoader

java.lang.Object
  |
  +--jltools.frontend.SourceLoader

public class SourceLoader
extends java.lang.Object

A SourceLoader is responsible for loading source files.


Constructor Summary
SourceLoader(java.util.Collection sourcePath, java.lang.String sourceExtension)
           
 
Method Summary
 Source classSource(java.lang.String className)
          Load the source file for the given class name using the source path.
 Source fileSource(java.lang.String fileName)
          Load a source from a specific file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceLoader

public SourceLoader(java.util.Collection sourcePath,
                    java.lang.String sourceExtension)
Method Detail

fileSource

public Source fileSource(java.lang.String fileName)
                  throws java.io.IOException
Load a source from a specific file.

classSource

public Source classSource(java.lang.String className)
                   throws java.io.IOException
Load the source file for the given class name using the source path.