Class GoMethod
java.lang.Object
ghidra.app.util.bin.format.golang.rtti.types.GoMethod
- All Implemented Interfaces:
StructureMarkup<GoMethod>
Structure that defines a method for a GoType, found in the type's
GoUncommonType struct.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of this method.getIfn()Returns the address of the version of the function that is called via the interface.getMethodInfos(GoType containingType) Returns a list ofGoMethod.GoMethodInfos containing the ifn and tfn values (if present).getName()Returns the name of this method.Returns the name of the instance, typically retrieved from data found inside the instance.getTfn()Returns the address of the version of the function that is called normally.getType()Return theGoTypethat defines the funcdef / func signature.booleanReturns true if the funcdef is missing for this method.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
additionalMarkup, getExternalInstancesToMarkup, getStructureLabel, getStructureNamespace
-
Constructor Details
-
GoMethod
public GoMethod()
-
-
Method Details
-
getGoName
Returns the name of this method.- Returns:
- name of this method as a raw GoName value
- Throws:
IOException- if error reading
-
getName
Returns the name of this method.- Returns:
- name of this method
-
isSignatureMissing
public boolean isSignatureMissing()Returns true if the funcdef is missing for this method.- Returns:
- true if the funcdef is missing for this method
-
getType
Return theGoTypethat defines the funcdef / func signature.- Returns:
GoTypethat defines the funcdef / func signature- Throws:
IOException- if error reading data
-
getStructureContext
- Specified by:
getStructureContextin interfaceStructureMarkup<GoMethod>
-
getStructureName
Description copied from interface:StructureMarkupReturns the name of the instance, typically retrieved from data found inside the instance.- Specified by:
getStructureNamein interfaceStructureMarkup<GoMethod>- Returns:
- string name, or null if this instance does not have a name
-
getIfn
Returns the address of the version of the function that is called via the interface.- Returns:
- address of the version of the function that is called via the interface
-
getTfn
Returns the address of the version of the function that is called normally.- Returns:
- address of the version of the function that is called normally
-
getMethodInfos
Returns a list ofGoMethod.GoMethodInfos containing the ifn and tfn values (if present).- Parameters:
containingType-GoTypethat contains this method- Returns:
- list of
GoMethod.GoMethodInfoinstances representing the ifn and tfn values if present
-
toString
-