Package ghidra.app.decompiler

# Class DecompiledFunction

java.lang.Object
ghidra.app.decompiler.DecompiledFunction

public class DecompiledFunction extends Object
A class to hold pieces of a decompiled function.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DecompiledFunction(String signature, String c)`
  Constructs a new decompiled function.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getC()`
  Returns the complete C code of the function.
  `String`
  `getSignature()`
  Returns the function signature or prototype (eg, "int foo(double d)").

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DecompiledFunction

    public DecompiledFunction(String signature, String c)
    Constructs a new decompiled function.
    Parameters:
      `signature` - the function signature or prototype (eg, "int foo(double d)")
      `c` - the complete C code of the function.

- ## Method Details

  - ### getSignature

    public String getSignature()
    Returns the function signature or prototype (eg, "int foo(double d)").
    Returns:
      the function signature or prototype (eg, "int foo(double d)")

  - ### getC

    public String getC()
    Returns the complete C code of the function.
    Returns:
      the complete C code of the function