Package ghidra.app.script
Class JythonStubScriptProvider
java.lang.Object
ghidra.app.script.GhidraScriptProvider
ghidra.app.script.AbstractPythonScriptProvider
ghidra.app.script.JythonStubScriptProvider
- All Implemented Interfaces:
ExtensionPoint,Comparable<GhidraScriptProvider>
A stub
GhidraScriptProvider used to give feedback to a user trying to run a Jython
script when the Jython Extension is not installed.
Uses a sub-default priority so the Jython
Extension can get prioritized over this if it's installed.
-
Nested Class Summary
Nested ClassesChangeModifier and TypeClassDescriptionstatic classA special type ofGhidraScriptLoadExceptionused to indicate that the Jython Extension is not installed. -
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionReturns a description for this type of script.Returns an optional runtime environment name of aGhidraScriptProviderthat scripts can specify they require to run under.getScriptInstance(ResourceFile sourceFile, PrintWriter writer) Returns a GhidraScript instance for the specified source file.Methods inherited from class ghidra.app.script.AbstractPythonScriptProvider
createNewScript, getBlockCommentEnd, getBlockCommentStart, getCertificationBodyPrefix, getCertifyHeaderEnd, getCertifyHeaderStart, getCommentCharacter, getExtensionMethods inherited from class ghidra.app.script.GhidraScriptProvider
compareTo, deleteScript, equals, fixupName, hashCode, toString, writeBody, writeHeader
-
Constructor Details
-
JythonStubScriptProvider
public JythonStubScriptProvider()
-
-
Method Details
-
getDescription
Description copied from class:GhidraScriptProviderReturns a description for this type of script.- Specified by:
getDescriptionin classAbstractPythonScriptProvider- Returns:
- a description for this type of script
-
getRuntimeEnvironmentName
Description copied from class:GhidraScriptProviderReturns an optional runtime environment name of aGhidraScriptProviderthat scripts can specify they require to run under. Useful for when more than oneGhidraScriptProvideruses the same file extension.- Specified by:
getRuntimeEnvironmentNamein classAbstractPythonScriptProvider- Returns:
- an optional runtime environment name of a
GhidraScriptProviderthat scripts can specify they require to run under (could be null if there is no requirement) - See Also:
-
getScriptInstance
public GhidraScript getScriptInstance(ResourceFile sourceFile, PrintWriter writer) throws JythonStubScriptProvider.JythonStubException Description copied from class:GhidraScriptProviderReturns a GhidraScript instance for the specified source file.- Specified by:
getScriptInstancein classAbstractPythonScriptProvider- Parameters:
sourceFile- the source filewriter- the print writer to write warning/error messages. If the error prevents success, throw an exception instead. The caller will print the error.- Returns:
- a GhidraScript instance for the specified source file
- Throws:
JythonStubScriptProvider.JythonStubException
-