java.lang.AutoCloseable
IScannableCodeBase
AbstractScannableCodeBase
, DirectoryCodeBase
, EmptyCodeBase
, JrtfsCodeBase
, NestedZipFileCodeBase
, SingleFileCodeBase
, ZipFileCodeBase
, ZipInputStreamCodeBase
public interface ICodeBase
extends java.lang.AutoCloseable
Modifier and Type | Interface | Description |
---|---|---|
static class |
ICodeBase.Discovered |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
This method should be called when done using the code base.
|
boolean |
containsSourceFiles() |
Return whether or not this code base contains any source files.
|
ICodeBaseLocator |
getCodeBaseLocator() |
Get the codebase locator describing the location of this codebase.
|
ICodeBase.Discovered |
getHowDiscovered() |
Return how this codebase was discovered.
|
long |
getLastModifiedTime() |
Get timestamp indicating the most recent time when any of the files in
the codebase were modified.
|
java.lang.String |
getPathName() |
Get the filesystem pathname of this codebase.
|
boolean |
isApplicationCodeBase() |
Return whether or not this codebase is an application codebase.
|
ICodeBaseEntry |
lookupResource(java.lang.String resourceName) |
Look up a resource in this code base.
|
void |
setApplicationCodeBase(boolean isAppCodeBase) |
Designate this code base as an application codebase.
|
void |
setHowDiscovered(ICodeBase.Discovered howDiscovered) |
Set how this codebase was discovered.
|
void |
setLastModifiedTime(long lastModifiedTime) |
Set timestamp indicating the most recent time when any of the files in
the codebase were modified.
|
ICodeBaseLocator getCodeBaseLocator()
ICodeBaseEntry lookupResource(java.lang.String resourceName)
resourceName
- name of the resource to look upvoid setApplicationCodeBase(boolean isAppCodeBase)
isAppCodeBase
- true if this is an application codebase, false if notboolean isApplicationCodeBase()
void setHowDiscovered(ICodeBase.Discovered howDiscovered)
howDiscovered
- one of the constants SPECIFIED, NESTED, IN_JAR_MANIFEST, or
IN_SYSTEM_CLASSPATHICodeBase.Discovered getHowDiscovered()
boolean containsSourceFiles() throws java.lang.InterruptedException
java.lang.InterruptedException
java.lang.String getPathName()
void setLastModifiedTime(long lastModifiedTime)
lastModifiedTime
- timestamp when any codebase files were most-recently modifiedlong getLastModifiedTime()
void close()
close
in interface java.lang.AutoCloseable
SpotBugs is licensed under the LGPL.