Class ResourceInfo
- java.lang.Object
-
- ghidra.app.util.bin.format.pe.resource.ResourceInfo
-
- All Implemented Interfaces:
java.lang.Comparable<ResourceInfo>
public class ResourceInfo extends java.lang.Object implements java.lang.Comparable<ResourceInfo>
A class to hold the information extracted from a resource data directory. NOTE: This class is simply a storage class created for parsing the PE header data structures. It does not map back to a PE data data structure.
-
-
Constructor Summary
Constructors Constructor Description ResourceInfo(int address, java.lang.String name, int size)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ResourceInfo that)
int
getAddress()
Returns the adjusted address where the resource exists.int
getID()
Returns the ID of the resource.java.lang.String
getName()
Returns the name of the resource.int
getSize()
Returns the size of the resource.int
getTypeID()
Returns the resource type ID.void
setID(int id)
void
setName(java.lang.String name)
void
setTypeID(int typeID)
java.lang.String
toString()
-
-
-
Method Detail
-
getAddress
public int getAddress()
Returns the adjusted address where the resource exists.- Returns:
- the adjusted address where the resource exists
-
getName
public java.lang.String getName()
Returns the name of the resource.- Returns:
- the name of the resource
-
setName
public void setName(java.lang.String name)
-
getSize
public int getSize()
Returns the size of the resource.- Returns:
- the size of the resource
-
getID
public int getID()
Returns the ID of the resource.- Returns:
- the ID of the resource
-
setID
public void setID(int id)
-
getTypeID
public int getTypeID()
Returns the resource type ID. For example, RT_CURSOR, RT_BITMAP, etc. Returns -1 if this is a named resource.
-
setTypeID
public void setTypeID(int typeID)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(ResourceInfo that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ResourceInfo>
-
-