Package ghidra.pyghidra.interpreter
Interface PyGhidraConsole
- All Superinterfaces:
Disposable
Console interface providing only the methods which need to be implemented in Python.
This interface is for internal use only and is only public so it can be
implemented in Python.
-
Method Summary
Modifier and TypeMethodDescriptionList<ghidra.app.plugin.core.console.CodeCompletion> getCompletions(String cmd, int caretPos) Generates code completions for the PyGhidra interpretervoidInterrupts the code running in the PyGhidra consolevoidrestart()Restarts the PyGhidra consoleMethods inherited from interface ghidra.util.Disposable
dispose
-
Method Details
-
getCompletions
Generates code completions for the PyGhidra interpreter- Parameters:
cmd- The command to get code completions forcaretPos- The position of the caret in the input string 'cmd'. It should satisfy the constraint "0 <= caretPos <= cmd.length()"- Returns:
- A
Listofcode completionsfor the given command - See Also:
-
restart
void restart()Restarts the PyGhidra console -
interrupt
void interrupt()Interrupts the code running in the PyGhidra console
-