Package edu.umd.cs.findbugs.ba
Class SourceFinder.DirectorySourceRepository
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.SourceFinder.DirectorySourceRepository
-
- All Implemented Interfaces:
SourceFinder.SourceRepository
,java.lang.AutoCloseable
- Enclosing class:
- SourceFinder
private static class SourceFinder.DirectorySourceRepository extends java.lang.Object implements SourceFinder.SourceRepository
A directory containing source files.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
baseDir
-
Constructor Summary
Constructors Constructor Description DirectorySourceRepository(java.lang.String baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
contains(java.lang.String fileName)
SourceFileDataSource
getDataSource(java.lang.String fileName)
private java.lang.String
getFullFileName(java.lang.String fileName)
boolean
isPlatformDependent()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
contains
public boolean contains(java.lang.String fileName)
- Specified by:
contains
in interfaceSourceFinder.SourceRepository
-
isPlatformDependent
public boolean isPlatformDependent()
- Specified by:
isPlatformDependent
in interfaceSourceFinder.SourceRepository
-
getDataSource
public SourceFileDataSource getDataSource(java.lang.String fileName)
- Specified by:
getDataSource
in interfaceSourceFinder.SourceRepository
-
getFullFileName
private java.lang.String getFullFileName(java.lang.String fileName)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceSourceFinder.SourceRepository
-
-