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
-
Constructor Summary
-
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.GoMethodInfo
s 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 theGoType
that defines the funcdef / func signature.boolean
Returns 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, wait
Methods 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 theGoType
that defines the funcdef / func signature.- Returns:
GoType
that defines the funcdef / func signature- Throws:
IOException
- if error reading data
-
getStructureContext
- Specified by:
getStructureContext
in interfaceStructureMarkup<GoMethod>
-
getStructureName
Description copied from interface:StructureMarkup
Returns the name of the instance, typically retrieved from data found inside the instance.- Specified by:
getStructureName
in 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.GoMethodInfo
s containing the ifn and tfn values (if present).- Parameters:
containingType
-GoType
that contains this method- Returns:
- list of
GoMethod.GoMethodInfo
instances representing the ifn and tfn values if present
-
toString
-