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 TypeMethodDescriptionvoiddispose()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()voidinit(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:DisposableDispose this object- Specified by:
disposein interfaceDisposable
-
getIcon
- Specified by:
getIconin interfaceghidra.app.plugin.core.interpreter.InterpreterConnection
-
getTitle
- Specified by:
getTitlein interfaceghidra.app.plugin.core.interpreter.InterpreterConnection
-
getCompletions
- Specified by:
getCompletionsin interfaceghidra.app.plugin.core.interpreter.InterpreterConnection
-
getCompletions
- Specified by:
getCompletionsin 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
-