Package edu.umd.cs.findbugs.ba
Class SourceFinder.BlockingSourceRepository
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.SourceFinder.BlockingSourceRepository
-
- All Implemented Interfaces:
SourceFinder.SourceRepository,java.lang.AutoCloseable
- Enclosing class:
- SourceFinder
static class SourceFinder.BlockingSourceRepository extends java.lang.Object implements SourceFinder.SourceRepository
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SourceFinder.SourceRepositorybase(package private) java.util.concurrent.CountDownLatchready
-
Constructor Summary
Constructors Constructor Description BlockingSourceRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidawait()voidclose()booleancontains(java.lang.String fileName)SourceFileDataSourcegetDataSource(java.lang.String fileName)booleanisPlatformDependent()booleanisReady()voidsetBase(SourceFinder.SourceRepository base)
-
-
-
Field Detail
-
base
SourceFinder.SourceRepository base
-
ready
final java.util.concurrent.CountDownLatch ready
-
-
Method Detail
-
isReady
public boolean isReady()
-
setBase
public void setBase(@WillCloseWhenClosed SourceFinder.SourceRepository base)
-
await
private void await()
-
contains
public boolean contains(java.lang.String fileName)
- Specified by:
containsin interfaceSourceFinder.SourceRepository
-
getDataSource
public SourceFileDataSource getDataSource(java.lang.String fileName)
- Specified by:
getDataSourcein interfaceSourceFinder.SourceRepository
-
isPlatformDependent
public boolean isPlatformDependent()
- Specified by:
isPlatformDependentin interfaceSourceFinder.SourceRepository
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceSourceFinder.SourceRepository- Throws:
java.io.IOException
-
-