com.vladium.emma.report
Class SourcePathCache

java.lang.Object
  extended by com.vladium.emma.report.SourcePathCache

public final class SourcePathCache
extends java.lang.Object

Author:
Vlad Roubtsov, (C) 2003

Nested Class Summary
private static class SourcePathCache.CacheEntry
           
private static class SourcePathCache.FileExtensionFilter
           
 
Field Summary
private static SourcePathCache.FileExtensionFilter FILE_EXTENSION_FILTER
           
private  java.util.Map m_packageCache
           
private  java.io.File[] m_sourcepath
           
 
Constructor Summary
SourcePathCache(java.io.File[] sourcepath, boolean removeNonExistent)
           
SourcePathCache(java.lang.String[] sourcepath, boolean removeNonExistent)
           
 
Method Summary
private  java.util.Set faultListing(java.io.File dir, java.lang.String packageVMName)
           
 java.io.File find(java.lang.String packageVMName, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_sourcepath

private final java.io.File[] m_sourcepath

m_packageCache

private final java.util.Map m_packageCache

FILE_EXTENSION_FILTER

private static final SourcePathCache.FileExtensionFilter FILE_EXTENSION_FILTER
Constructor Detail

SourcePathCache

public SourcePathCache(java.lang.String[] sourcepath,
                       boolean removeNonExistent)
Parameters:
sourcepath - [can be empty]

SourcePathCache

public SourcePathCache(java.io.File[] sourcepath,
                       boolean removeNonExistent)
Parameters:
sourcepath - [can be empty]
Method Detail

find

public java.io.File find(java.lang.String packageVMName,
                         java.lang.String name)
Returns:
absolute pathname [null if 'name' was not found in cache]

faultListing

private java.util.Set faultListing(java.io.File dir,
                                   java.lang.String packageVMName)