FindBugs™ 1.3.9

edu.umd.cs.findbugs.classfile.impl
Class FilesystemCodeBaseLocator

java.lang.Object
  extended by edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator
All Implemented Interfaces:
ICodeBaseLocator

public class FilesystemCodeBaseLocator
extends java.lang.Object
implements ICodeBaseLocator

Codebase locator for files and directories in the filesystem.

Author:
David Hovemeyer

Constructor Summary
FilesystemCodeBaseLocator(java.lang.String pathName)
           
 
Method Summary
 ICodeBaseLocator createRelativeCodeBaseLocator(java.lang.String relativePath)
          Get the codebase locator describing the location of a relative codebase.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getPathName()
           
 int hashCode()
           
 ICodeBase openCodeBase()
          Get the codebase object.
 java.lang.String toString()
          Convert the codebase locator to a string representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilesystemCodeBaseLocator

public FilesystemCodeBaseLocator(java.lang.String pathName)
Method Detail

getPathName

public java.lang.String getPathName()
Returns:
Returns the pathName.

createRelativeCodeBaseLocator

public ICodeBaseLocator createRelativeCodeBaseLocator(java.lang.String relativePath)
Description copied from interface: ICodeBaseLocator
Get the codebase locator describing the location of a relative codebase. This method is useful for getting the location of a codebase referred to in the Class-Path attribute of a Jar manifest.

Specified by:
createRelativeCodeBaseLocator in interface ICodeBaseLocator
Parameters:
relativePath - the path of a relative codebase
Returns:
codebase locator of the relative codebase whose path is given

openCodeBase

public ICodeBase openCodeBase()
                       throws java.io.IOException
Description copied from interface: ICodeBaseLocator
Get the codebase object.

Specified by:
openCodeBase in interface ICodeBaseLocator
Returns:
the codebase object
Throws:
java.io.IOException

toString

public java.lang.String toString()
Description copied from interface: ICodeBaseLocator
Convert the codebase locator to a string representation. If possible two codebase locators that refer to the same codebase should produce the same string representation. So, this string can serve as a key identifying the codebase in a map.

Specified by:
toString in interface ICodeBaseLocator
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the codebase

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.