Package com.goatshriek.rubydragon.groovy
Class GroovyDragonPlugin
java.lang.Object
ghidra.framework.plugintool.Plugin
ghidra.app.plugin.ProgramPlugin
com.goatshriek.rubydragon.DragonPlugin
com.goatshriek.rubydragon.groovy.GroovyDragonPlugin
- All Implemented Interfaces:
ghidra.app.plugin.core.interpreter.InterpreterConnection,ghidra.framework.plugintool.util.PluginEventListener,ghidra.framework.plugintool.util.ServiceListener,ghidra.util.classfinder.ExtensionPoint
public class GroovyDragonPlugin
extends DragonPlugin
implements ghidra.app.plugin.core.interpreter.InterpreterConnection
GroovyDragon provides an interactive Groovy terminal session within Ghidra.
-
Field Summary
Fields inherited from class com.goatshriek.rubydragon.DragonPlugin
AUTO_IMPORT_FILENAME, OPTION_CATEGORY_NAME, PLUGIN_CATEGORY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionGroovyDragonPlugin(ghidra.framework.plugintool.PluginTool tool) Plugin constructor. -
Method Summary
Modifier and TypeMethodDescriptionGives the Groovy interpreter currently in use.voidinit()Set up the plugin, including the creation of the interactive interpreter.voidShows the interpreter console.Methods inherited from class com.goatshriek.rubydragon.DragonPlugin
forEachAutoImport, forEachAutoImport, getAutoImportOptionDescription, getAutoImportOptionHelpLocation, getAutoImportOptionName, getCompletions, getCompletions, getIcon, getTitle, highlightChanged, isAutoImportEnabled, locationChanged, programActivated, selectionChangedMethods inherited from class ghidra.app.plugin.ProgramPlugin
getCurrentProgram, getProgramHighlight, getProgramLocation, getProgramSelection, processEventMethods inherited from class ghidra.framework.plugintool.Plugin
accept, acceptData, dataStateRestoreCompleted, dependsUpon, equals, eventSent, firePluginEvent, getData, getMissingRequiredServices, getName, getPluginDescription, getSupportedDataTypes, getTool, getTransientState, getUndoRedoState, hashCode, hasMissingRequiredService, isDisposed, readConfigState, readDataState, restoreTransientState, restoreUndoRedoState, serviceAdded, serviceRemoved, writeConfigState, writeDataStateMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.app.plugin.core.interpreter.InterpreterConnection
getCompletions, getCompletions, getIcon, getTitle
-
Constructor Details
-
GroovyDragonPlugin
public GroovyDragonPlugin(ghidra.framework.plugintool.PluginTool tool) Plugin constructor.- Parameters:
tool- The plugin tool that this plugin is added to.
-
-
Method Details
-
getInterpreter
Gives the Groovy interpreter currently in use.- Specified by:
getInterpreterin classDragonPlugin- Returns:
- The Groovy interpreter for this plugin. Will always be a GroovyGhidraInterpreter instance.
-
init
public void init()Set up the plugin, including the creation of the interactive interpreter. -
showConsole
public void showConsole()Shows the interpreter console.- Specified by:
showConsolein classDragonPlugin
-