java.lang.Object
ghidra.app.util.bin.format.golang.rtti.types.GoMethod
All Implemented Interfaces:
StructureMarkup<GoMethod>

public class GoMethod extends Object implements StructureMarkup<GoMethod>
Structure that defines a method for a GoType, found in the type's GoUncommonType struct.
  • Constructor Details

    • GoMethod

      public GoMethod()
  • Method Details

    • getGoName

      public GoName getGoName() throws IOException
      Returns the name of this method.
      Returns:
      name of this method as a raw GoName value
      Throws:
      IOException - if error reading
    • getName

      public String 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

      public GoType getType() throws IOException
      Return the GoType that defines the funcdef / func signature.
      Returns:
      GoType that defines the funcdef / func signature
      Throws:
      IOException - if error reading data
    • getStructureContext

      public StructureContext<GoMethod> getStructureContext()
      Specified by:
      getStructureContext in interface StructureMarkup<GoMethod>
    • getStructureName

      public String getStructureName()
      Description copied from interface: StructureMarkup
      Returns the name of the instance, typically retrieved from data found inside the instance.
      Specified by:
      getStructureName in interface StructureMarkup<GoMethod>
      Returns:
      string name, or null if this instance does not have a name
    • getIfn

      public Address 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

      public Address 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

      public List<GoMethod.GoMethodInfo> getMethodInfos(GoType containingType)
      Returns a list of GoMethod.GoMethodInfos 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

      public String toString()
      Overrides:
      toString in class Object