Package ghidra.python

Class PythonPlugin

    • Constructor Detail

      • PythonPlugin

        public PythonPlugin​(PluginTool tool)
        Creates a new PythonPlugin object.
        Parameters:
        tool - The tool associated with this plugin.
    • Method Detail

      • init

        protected void init()
        Description copied from class: Plugin
        Initialization method; override to add initialization for this plugin. This is where a plugin should acquire its services. When this method is called, all plugins have been instantiated in the tool.
        Overrides:
        init in class Plugin
      • optionsChanged

        public void optionsChanged​(ToolOptions options,
                                   java.lang.String optionName,
                                   java.lang.Object oldValue,
                                   java.lang.Object newValue)
        Handle a change in one of our options.
        Specified by:
        optionsChanged in interface OptionsChangeListener
        Parameters:
        options - the options handle
        optionName - name of the option changed
        oldValue - the old value
        newValue - the new value
      • getCompletions

        public java.util.List<ghidra.app.plugin.core.console.CodeCompletion> getCompletions​(java.lang.String cmd)
        Returns a list of possible command completion values.
        Specified by:
        getCompletions in interface ghidra.app.plugin.core.interpreter.InterpreterConnection
        Parameters:
        cmd - current command line (without prompt)
        Returns:
        A list of possible command completion values. Could be empty if there aren't any.
      • dispose

        protected void dispose()
        Description copied from class: Plugin
        Tells a plugin that it is no longer needed. The plugin should release any resources that it has. All actions, components, services will automatically be cleaned up.
        Overrides:
        dispose in class Plugin
      • interrupt

        public void interrupt()
        Interrupts what the interpreter is currently doing.
      • reset

        public void reset()
        Resets the interpreter's state.
      • getTitle

        public java.lang.String getTitle()
        Specified by:
        getTitle in interface ghidra.app.plugin.core.interpreter.InterpreterConnection
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getIcon

        public javax.swing.ImageIcon getIcon()
        Specified by:
        getIcon in interface ghidra.app.plugin.core.interpreter.InterpreterConnection