Class Objc2Implementation
java.lang.Object
ghidra.app.util.bin.format.objc.ObjcTypeMetadataStructure
ghidra.app.util.bin.format.objc.objc2.Objc2Implementation
- All Implemented Interfaces:
StructConverter
-
Field Summary
Fields inherited from class ghidra.app.util.bin.format.objc.ObjcTypeMetadataStructure
base, DATA_TYPE_CATEGORY, is32bit, isArm, pointerSize, program, state -
Constructor Summary
ConstructorsConstructorDescriptionObjc2Implementation(Program program, ObjcState state, BinaryReader reader) Objc2Implementation(Program program, ObjcState state, BinaryReader reader, boolean isSmall) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(Namespace namespace, TaskMonitor monitor) Applies thisObjcTypeMetadataStructureto the programlongReturns a structure datatype representing the contents of the implementor of this interface.Methods inherited from class ghidra.app.util.bin.format.objc.ObjcTypeMetadataStructure
getBase, getPointerSize, getProgram, getState, is32bit, isArm, toString
-
Constructor Details
-
Objc2Implementation
public Objc2Implementation(Program program, ObjcState state, BinaryReader reader, boolean isSmall) throws IOException - Throws:
IOException
-
Objc2Implementation
public Objc2Implementation(Program program, ObjcState state, BinaryReader reader) throws IOException - Throws:
IOException
-
-
Method Details
-
getImplementation
public long getImplementation() -
toDataType
Description copied from interface:StructConverterReturns a structure datatype representing the contents of the implementor of this interface.For example, given:
class A { int foo; double bar; }The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.
- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException- when a datatype of the same name already existsIOException- if an IO-related error occurs- See Also:
-
applyTo
Description copied from class:ObjcTypeMetadataStructureApplies thisObjcTypeMetadataStructureto the program- Specified by:
applyToin classObjcTypeMetadataStructure- Parameters:
namespace- An optionalNamespaceto apply tomonitor- A cancellable monitor- Throws:
Exception- if an error occurred
-