public abstract class AbstractScannableCodeBase extends java.lang.Object implements IScannableCodeBase
ICodeBase.Discovered
Constructor and Description |
---|
AbstractScannableCodeBase(ICodeBaseLocator codeBaseLocator) |
Modifier and Type | Method and Description |
---|---|
void |
addLastModifiedTime(long lastModifiedTime) |
void |
addResourceNameTranslation(java.lang.String origResourceName,
java.lang.String newResourceName) |
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.
|
boolean |
isApplicationCodeBase()
Return whether or not this codebase is an application codebase.
|
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.
|
java.lang.String |
translateResourceName(java.lang.String resourceName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator
close, getPathName, lookupResource
public AbstractScannableCodeBase(ICodeBaseLocator codeBaseLocator)
public ICodeBaseLocator getCodeBaseLocator()
ICodeBase
getCodeBaseLocator
in interface ICodeBase
public boolean containsSourceFiles()
ICodeBase
containsSourceFiles
in interface ICodeBase
public void setApplicationCodeBase(boolean isAppCodeBase)
ICodeBase
setApplicationCodeBase
in interface ICodeBase
isAppCodeBase
- true if this is an application codebase, false if notpublic boolean isApplicationCodeBase()
ICodeBase
isApplicationCodeBase
in interface ICodeBase
public void setHowDiscovered(ICodeBase.Discovered howDiscovered)
ICodeBase
setHowDiscovered
in interface ICodeBase
howDiscovered
- one of the constants SPECIFIED, NESTED, IN_JAR_MANIFEST, or
IN_SYSTEM_CLASSPATHpublic ICodeBase.Discovered getHowDiscovered()
ICodeBase
getHowDiscovered
in interface ICodeBase
public void setLastModifiedTime(long lastModifiedTime)
ICodeBase
setLastModifiedTime
in interface ICodeBase
lastModifiedTime
- timestamp when any codebase files were most-recently modifiedpublic void addLastModifiedTime(long lastModifiedTime)
public long getLastModifiedTime()
ICodeBase
getLastModifiedTime
in interface ICodeBase
public void addResourceNameTranslation(java.lang.String origResourceName, java.lang.String newResourceName)
public java.lang.String translateResourceName(java.lang.String resourceName)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.