org.objectweb.speedo.generation.start
Class ListResourceLocator
java.lang.Object
org.objectweb.speedo.generation.start.Assertion
org.objectweb.speedo.generation.start.Support
org.objectweb.speedo.generation.start.ResourceLocatorBase
org.objectweb.speedo.generation.start.ListResourceLocator
- All Implemented Interfaces:
- ResourceLocator
- public class ListResourceLocator
- extends org.objectweb.speedo.generation.start.ResourceLocatorBase
- implements ResourceLocator
Searches resources among a set of files.
Field Summary |
protected java.io.PrintWriter |
out
|
protected boolean |
verbose
|
Fields inherited from class org.objectweb.speedo.generation.start.Support |
timer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected final java.io.PrintWriter out
verbose
protected final boolean verbose
ListResourceLocator
public ListResourceLocator(java.io.PrintWriter out,
boolean verbose,
java.util.List fileNames,
java.lang.String dir,
SpeedoCompilerParameter scp)
throws java.io.IOException
- Creates an intsance.
getCollectionOfFiles
public java.util.Collection getCollectionOfFiles()
getInputStreamForResource
public java.io.InputStream getInputStreamForResource(java.lang.String resourceName)
- Finds a resource with a given name.
- Specified by:
getInputStreamForResource
in interface ResourceLocator
printMessage
public void printMessage(java.lang.String msg)
- Prints out a verbose message.
- Parameters:
msg
- the message