Class GoType
java.lang.Object
ghidra.app.util.bin.format.golang.rtti.types.GoType
- All Implemented Interfaces:
StructureMarkup<GoType>
- Direct Known Subclasses:
GoArrayType,GoChanType,GoFuncType,GoInterfaceType,GoMapType,GoPlainType,GoPointerType,GoSliceType,GoStructType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StructureContext<GoType>protected GoRttiMapperprotected GoBaseType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled to allow the implementor to perform custom markup of itself.booleandiscoverGoTypes(Set<Long> discoveredTypes) protected longgetSpecializedTypeClass(GoRttiMapper programContext, long offset) Returns the name of the instance, typically retrieved from data found inside the instance.protected StringConverts a golang RTTI type structure into a Ghidra data type.toString()Methods 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
-
Field Details
-
programContext
-
context
-
typ
-
-
Constructor Details
-
GoType
public GoType()
-
-
Method Details
-
getSpecializedTypeClass
public static Class<? extends GoType> getSpecializedTypeClass(GoRttiMapper programContext, long offset) throws IOException - Throws:
IOException
-
getBaseType
-
getDebugId
-
getOffsetEndOfFullType
protected long getOffsetEndOfFullType() -
getUncommonType
- Throws:
IOException
-
getStructureContext
- Specified by:
getStructureContextin interfaceStructureMarkup<GoType>
-
getStructureName
Description copied from interface:StructureMarkupReturns the name of the instance, typically retrieved from data found inside the instance.- Specified by:
getStructureNamein interfaceStructureMarkup<GoType>- Returns:
- string name, or null if this instance does not have a name
- Throws:
IOException
-
additionalMarkup
Description copied from interface:StructureMarkupCalled to allow the implementor to perform custom markup of itself.- Specified by:
additionalMarkupin interfaceStructureMarkup<GoType>- Throws:
IOException
-
getMethodListString
- Throws:
IOException
-
getTypeDeclString
- Throws:
IOException
-
toString
-
recoverDataType
Converts a golang RTTI type structure into a Ghidra data type.- Returns:
DataTypethat represents the golang type- Throws:
IOException
-
discoverGoTypes
- Throws:
IOException
-