org.codehaus.enunciate.main
Class ImportedClassesClasspathHandler

java.lang.Object
  extended by org.codehaus.enunciate.main.ImportedClassesClasspathHandler
All Implemented Interfaces:
ClasspathHandler

public class ImportedClassesClasspathHandler
extends java.lang.Object
implements ClasspathHandler

Author:
Ryan Heaton

Constructor Summary
ImportedClassesClasspathHandler(Enunciate enunciate)
           
 
Method Summary
protected  boolean copyImportedClasses(java.util.Map<java.lang.String,java.io.File> foundClasses2Sources, java.util.Map<java.lang.String,java.io.File> classes2sources)
          Copy the relevant found classes that are imported to the specified map.
 boolean endPathEntry(java.io.File pathEntry)
          End an entry on the classpath.
 java.util.Map<java.lang.String,java.io.File> getClassesToSources()
           
 void handleResource(ClasspathResource resource)
          Handle a classpath resource.
 void startPathEntry(java.io.File pathEntry)
          Start an entry on the classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportedClassesClasspathHandler

public ImportedClassesClasspathHandler(Enunciate enunciate)
                                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getClassesToSources

public java.util.Map<java.lang.String,java.io.File> getClassesToSources()

startPathEntry

public void startPathEntry(java.io.File pathEntry)
Description copied from interface: ClasspathHandler
Start an entry on the classpath.

Specified by:
startPathEntry in interface ClasspathHandler
Parameters:
pathEntry - The path entry.

handleResource

public void handleResource(ClasspathResource resource)
Description copied from interface: ClasspathHandler
Handle a classpath resource.

Specified by:
handleResource in interface ClasspathHandler
Parameters:
resource - The classpath resource to handle.

endPathEntry

public boolean endPathEntry(java.io.File pathEntry)
Description copied from interface: ClasspathHandler
End an entry on the classpath.

Specified by:
endPathEntry in interface ClasspathHandler
Parameters:
pathEntry - The entry on the classpath that we're ending.
Returns:
Whether to attempt to look up the sources for the specified path entry.

copyImportedClasses

protected boolean copyImportedClasses(java.util.Map<java.lang.String,java.io.File> foundClasses2Sources,
                                      java.util.Map<java.lang.String,java.io.File> classes2sources)
Copy the relevant found classes that are imported to the specified map.

Parameters:
foundClasses2Sources - the found classes.
classes2sources - the target map.
Returns:
whether any of the found classes were imported.