|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.classfile.impl.SingleFileCodeBase
public class SingleFileCodeBase
Implementation of ICodeBase for a single classfile.
| Field Summary |
|---|
| Fields inherited from interface edu.umd.cs.findbugs.classfile.ICodeBase |
|---|
IN_JAR_MANIFEST, IN_SYSTEM_CLASSPATH, NESTED, SPECIFIED |
| Constructor Summary | |
|---|---|
SingleFileCodeBase(ICodeBaseLocator codeBaseLocator,
java.lang.String fileName)
|
|
| 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. |
java.lang.String |
getPathName()
Get the filesystem pathname of this codebase. |
boolean |
isApplicationCodeBase()
Return whether or not this codebase is an application codebase. |
ICodeBaseIterator |
iterator()
Get an iterator over the resources in the this code base. |
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(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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingleFileCodeBase(ICodeBaseLocator codeBaseLocator,
java.lang.String fileName)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic ICodeBaseLocator getCodeBaseLocator()
ICodeBase
getCodeBaseLocator in interface ICodeBase
public boolean containsSourceFiles()
throws java.lang.InterruptedException
ICodeBase
containsSourceFiles in interface ICodeBasejava.lang.InterruptedException
public ICodeBaseIterator iterator()
throws java.lang.InterruptedException
IScannableCodeBase
iterator in interface IScannableCodeBasejava.lang.InterruptedExceptionpublic ICodeBaseEntry lookupResource(java.lang.String resourceName)
ICodeBase
lookupResource in interface ICodeBaseresourceName - name of the resource to look up
public void setApplicationCodeBase(boolean isAppCodeBase)
ICodeBase
setApplicationCodeBase in interface ICodeBaseisAppCodeBase - true if this is an application codebase, false if notpublic boolean isApplicationCodeBase()
ICodeBase
isApplicationCodeBase in interface ICodeBasepublic void setHowDiscovered(int howDiscovered)
ICodeBase
setHowDiscovered in interface ICodeBasehowDiscovered - one of the constants SPECIFIED, NESTED,
IN_JAR_MANIFEST, or IN_SYSTEM_CLASSPATHpublic int getHowDiscovered()
ICodeBase
getHowDiscovered in interface ICodeBasepublic void setLastModifiedTime(long lastModifiedTime)
ICodeBase
setLastModifiedTime in interface ICodeBaselastModifiedTime - timestamp when any codebase files were most-recently modifiedpublic long getLastModifiedTime()
ICodeBase
getLastModifiedTime in interface ICodeBasepublic java.lang.String getPathName()
ICodeBase
getPathName in interface ICodeBasepublic void close()
ICodeBase
close in interface ICodeBase
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||