Class PyGhidraInterpreter

java.lang.Object
ghidra.pyghidra.interpreter.PyGhidraInterpreter
All Implemented Interfaces:
ghidra.app.plugin.core.interpreter.InterpreterConnection, Disposable

public final class PyGhidraInterpreter extends Object implements Disposable, ghidra.app.plugin.core.interpreter.InterpreterConnection
The PyGhidra interpreter connection
  • Field Details Link icon

    • console Link icon

      public final ghidra.app.plugin.core.interpreter.InterpreterConsole console
  • Constructor Details Link icon

    • PyGhidraInterpreter Link icon

      public PyGhidraInterpreter(PyGhidraPlugin plugin, boolean isPythonAvailable)
  • Method Details Link icon

    • dispose Link icon

      public void dispose()
      Description copied from interface: Disposable
      Dispose this object
      Specified by:
      dispose in interface Disposable
    • getIcon Link icon

      public Icon getIcon()
      Specified by:
      getIcon in interface ghidra.app.plugin.core.interpreter.InterpreterConnection
    • getTitle Link icon

      public String getTitle()
      Specified by:
      getTitle in interface ghidra.app.plugin.core.interpreter.InterpreterConnection
    • getCompletions Link icon

      public List<ghidra.app.plugin.core.console.CodeCompletion> getCompletions(String cmd)
      Specified by:
      getCompletions in interface ghidra.app.plugin.core.interpreter.InterpreterConnection
    • getCompletions Link icon

      public List<ghidra.app.plugin.core.console.CodeCompletion> getCompletions(String cmd, int caretPos)
      Specified by:
      getCompletions in interface ghidra.app.plugin.core.interpreter.InterpreterConnection
    • init Link icon

      public void init(PyGhidraConsole pythonSideConsole)
      Initializes the interpreter with the provided PyGhidraConsole. This method is for internal use only and is only public so it can be called from Python.
      Parameters:
      pythonSideConsole - the python side console
      Throws:
      AssertException - if the interpreter has already been initialized