Class DecompilerLocation

java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.app.decompiler.DecompilerLocation
All Implemented Interfaces:
Cloneable, Comparable<ProgramLocation>

public class DecompilerLocation extends ProgramLocation
  • Constructor Details Link icon

    • DecompilerLocation Link icon

      public DecompilerLocation(Program program, Address address, Address functionEntryPoint, DecompileResults results, ClangToken token, int lineNumber, int charPos)
    • DecompilerLocation Link icon

      public DecompilerLocation()
      Default constructor required for restoring a program location from XML.
  • Method Details Link icon

    • getFunctionEntryPoint Link icon

      public Address getFunctionEntryPoint()
    • getDecompile Link icon

      public DecompileResults getDecompile()
      Results from the decompilation
      Returns:
      C-AST, DFG, and CFG object. null if there are no results attached to this location
    • getToken Link icon

      public ClangToken getToken()
      C text token at the current cursor location
      Returns:
      token at this location, could be null if there are no decompiler results
    • getTokenName Link icon

      public String getTokenName()
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class ProgramLocation
    • equals Link icon

      public boolean equals(Object obj)
      Overrides:
      equals in class ProgramLocation
    • saveState Link icon

      public void saveState(SaveState saveState)
      Description copied from class: ProgramLocation
      Save this program location to the given save state object.
      Overrides:
      saveState in class ProgramLocation
      Parameters:
      saveState - the save state object for saving the location
    • restoreState Link icon

      public void restoreState(Program program1, SaveState obj)
      Description copied from class: ProgramLocation
      Restore this program location using the given program and save state object.
      Overrides:
      restoreState in class ProgramLocation
      Parameters:
      program1 - program to restore from
      obj - the save state to restore from
    • getLineNumber Link icon

      public int getLineNumber()
    • getCharPos Link icon

      public int getCharPos()
    • toString Link icon

      public String toString()
      Overrides:
      toString in class ProgramLocation