edu.umd.cs.findbugs.classfile
public interface ICodeBase
Field Summary | |
---|---|
static int | IN_JAR_MANIFEST Codebase was referenced in the Class-Path attribute of a Jar manifest of another codebase. |
static int | IN_SYSTEM_CLASSPATH Codebase was discovered in the system classpath. |
static int | NESTED Codebase was discovered as a nested archive in another codebase. |
static int | SPECIFIED Codebase was explicitly specified. |
Method Summary | |
---|---|
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.
|
int | 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.
|
String | getPathName()
Get the filesystem pathname of this codebase.
|
boolean | isApplicationCodeBase()
Return whether or not this codebase is an application codebase.
|
ICodeBaseEntry | lookupResource(String resourceName)
Look up a resource in this code base.
|
void | setApplicationCodeBase(boolean isAppCodeBase)
Designate this code base as an application codebase.
|
void | setHowDiscovered(int 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.
|
Returns: true if the code base contains source file(s), false if it does not contain source files
Returns: the ICodeBaseLocator
Returns: one of the constants SPECIFIED, NESTED, IN_JAR_MANIFEST, or IN_SYSTEM_CLASSPATH
Returns: timestamp when any codebase files were most-recently modified, -1 if unknown
Returns: the filesystem pathname of this codebase, or null if this codebase is not accessible via the filesystem
Returns: true if this is an application codebase, false if not
Parameters: resourceName name of the resource to look up
Returns: ICodeBaseEntry representing the resource
Throws: ResourceNotFoundException if the resource cannot be found in this code base
Parameters: isAppCodeBase true if this is an application codebase, false if not
Parameters: howDiscovered one of the constants SPECIFIED, NESTED, IN_JAR_MANIFEST, or IN_SYSTEM_CLASSPATH
Parameters: lastModifiedTime timestamp when any codebase files were most-recently modified