edu.umd.cs.findbugs.classfile

Interface ICodeBaseLocator

public interface ICodeBaseLocator

Specify the location of a codebase.

Author: David Hovemeyer

Method Summary
ICodeBaseLocatorcreateRelativeCodeBaseLocator(String relativePath)
Get the codebase locator describing the location of a relative codebase.
ICodeBaseopenCodeBase()
Get the codebase object.
StringtoString()
Convert the codebase locator to a string representation.

Method Detail

createRelativeCodeBaseLocator

public ICodeBaseLocator createRelativeCodeBaseLocator(String relativePath)
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.

Parameters: relativePath the path of a relative codebase

Returns: codebase locator of the relative codebase whose path is given

openCodeBase

public ICodeBase openCodeBase()
Get the codebase object.

Returns: the codebase object

toString

public String toString()
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.

Returns: a string representation of the codebase

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