Class ClassDataAnalysisEngine.VirtualCodeBaseEntry
java.lang.Object
edu.umd.cs.findbugs.classfile.engine.ClassDataAnalysisEngine.VirtualCodeBaseEntry
- All Implemented Interfaces:
ICodeBaseEntry
- Enclosing class:
ClassDataAnalysisEngine
private static class ClassDataAnalysisEngine.VirtualCodeBaseEntry
extends Object
implements ICodeBaseEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the ClassDescriptor of the class resource accessed by this codebase entry.Get the codebase this codebase entry belongs to.int
Get the number of bytes in the resource.Get the name of the resource.Open an input stream reading from the resource.void
overrideResourceName
(String resourceName) Override the resource name of this codebase entry.
-
Field Details
-
descriptor
-
-
Constructor Details
-
VirtualCodeBaseEntry
-
-
Method Details
-
getResourceName
Description copied from interface:ICodeBaseEntry
Get the name of the resource.- Specified by:
getResourceName
in interfaceICodeBaseEntry
- Returns:
- the name of the resource
-
getNumBytes
public int getNumBytes()Description copied from interface:ICodeBaseEntry
Get the number of bytes in the resource. Returns <0 if the number of bytes is not known.- Specified by:
getNumBytes
in interfaceICodeBaseEntry
- Returns:
- number of bytes in the resource, or <0 if not known.
-
openResource
Description copied from interface:ICodeBaseEntry
Open an input stream reading from the resource.- Specified by:
openResource
in interfaceICodeBaseEntry
- Returns:
- InputStream reading from the resource.
- Throws:
IOException
- if an error occurs reading from the resource
-
getCodeBase
Description copied from interface:ICodeBaseEntry
Get the codebase this codebase entry belongs to.- Specified by:
getCodeBase
in interfaceICodeBaseEntry
- Returns:
- the codebase this codebase entry belongs to
-
getClassDescriptor
Description copied from interface:ICodeBaseEntry
Return the ClassDescriptor of the class resource accessed by this codebase entry. Do not call this method unless ClassDescriptor.isClassResource() returns true. This method may require the class data to be loaded in order to determine the class.- Specified by:
getClassDescriptor
in interfaceICodeBaseEntry
- Returns:
- ClassDescriptor of this entry
-
overrideResourceName
Description copied from interface:ICodeBaseEntry
Override the resource name of this codebase entry.- Specified by:
overrideResourceName
in interfaceICodeBaseEntry
- Parameters:
resourceName
- the new resource name
-