Class GoStructType
java.lang.Object
ghidra.app.util.bin.format.golang.rtti.types.GoType
ghidra.app.util.bin.format.golang.rtti.types.GoStructType
- All Implemented Interfaces:
StructureMarkup<GoType>
Golang type information about a specific structure type.
-
Field Summary
Fields inherited from class ghidra.app.util.bin.format.golang.rtti.types.GoType
context, programContext, typ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadditionalMarkup(MarkupSession session) Called to allow the implementor to perform custom markup of itself.booleandiscoverGoTypes(Set<Long> discoveredTypes) longReturns the location of where this type object, and any known associated optional structures ends.Converts a golang RTTI type structure into a Ghidra data type.Methods inherited from class ghidra.app.util.bin.format.golang.rtti.types.GoType
getBaseType, getDebugId, getMethodListString, getNameString, getOffsetEndOfFullType, getSpecializedTypeClass, getStructureContext, getStructureName, getUncommonType, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.app.util.bin.format.golang.structmapping.StructureMarkup
getExternalInstancesToMarkup, getStructureLabel
-
Constructor Details
-
GoStructType
public GoStructType()
-
-
Method Details
-
getPkgPath
- Throws:
IOException
-
getPkgPathString
- Throws:
IOException
-
getFields
- Throws:
IOException
-
getEndOfTypeInfo
Description copied from class:GoTypeReturns the location of where this type object, and any known associated optional structures ends.- Overrides:
getEndOfTypeInfoin classGoType- Returns:
- index location of end of this type object
- Throws:
IOException- if error reading
-
additionalMarkup
Description copied from interface:StructureMarkupCalled to allow the implementor to perform custom markup of itself.- Specified by:
additionalMarkupin interfaceStructureMarkup<GoType>- Overrides:
additionalMarkupin classGoType- Parameters:
session- state and methods to assist marking up the program- Throws:
IOException- if error during markup
-
getTypeDeclString
- Overrides:
getTypeDeclStringin classGoType- Throws:
IOException
-
recoverDataType
Description copied from class:GoTypeConverts a golang RTTI type structure into a Ghidra data type.- Overrides:
recoverDataTypein classGoType- Returns:
DataTypethat represents the golang type- Throws:
IOException- if error getting name of the type
-
discoverGoTypes
- Overrides:
discoverGoTypesin classGoType- Throws:
IOException
-