Package ghidra.pyghidra.interpreter
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 Summary
FieldsModifier and TypeFieldDescriptionfinal ghidra.app.plugin.core.interpreter.InterpreterConsole
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose this objectList
<ghidra.app.plugin.core.console.CodeCompletion> getCompletions
(String cmd) List
<ghidra.app.plugin.core.console.CodeCompletion> getCompletions
(String cmd, int caretPos) getIcon()
getTitle()
void
init
(PyGhidraConsole pythonSideConsole) Initializes the interpreter with the provided PyGhidraConsole.
-
Field Details
-
console
public final ghidra.app.plugin.core.interpreter.InterpreterConsole console
-
-
Constructor Details
-
PyGhidraInterpreter
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:Disposable
Dispose this object- Specified by:
dispose
in interfaceDisposable
-
getIcon
- Specified by:
getIcon
in interfaceghidra.app.plugin.core.interpreter.InterpreterConnection
-
getTitle
- Specified by:
getTitle
in interfaceghidra.app.plugin.core.interpreter.InterpreterConnection
-
getCompletions
- Specified by:
getCompletions
in interfaceghidra.app.plugin.core.interpreter.InterpreterConnection
-
getCompletions
- Specified by:
getCompletions
in interfaceghidra.app.plugin.core.interpreter.InterpreterConnection
-
init
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
-