Class RubyScriptProvider

java.lang.Object
ghidra.app.script.GhidraScriptProvider
rubydragon.ruby.RubyScriptProvider
All Implemented Interfaces:
ghidra.util.classfinder.ExtensionPoint, Comparable<ghidra.app.script.GhidraScriptProvider>

public class RubyScriptProvider extends ghidra.app.script.GhidraScriptProvider
Supports Ruby scripts within ghidra.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createNewScript(generic.jar.ResourceFile newScript, String category)
    Creates a new script file for the given script and category.
    The comment character for ruby scripts.
    A short description of the type of scripts this provider supports.
    The extension of ruby scripts, including the period.
    ghidra.app.script.GhidraScript
    getScriptInstance(generic.jar.ResourceFile sourceFile, PrintWriter writer)
    Creates a new RubyScript instance for the given file and returns it.

    Methods inherited from class ghidra.app.script.GhidraScriptProvider

    compareTo, deleteScript, equals, getBlockCommentEnd, getBlockCommentStart, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RubyScriptProvider

      public RubyScriptProvider()
  • Method Details

    • getDescription

      public String getDescription()
      A short description of the type of scripts this provider supports.
      Specified by:
      getDescription in class ghidra.app.script.GhidraScriptProvider
    • getExtension

      public String getExtension()
      The extension of ruby scripts, including the period.
      Specified by:
      getExtension in class ghidra.app.script.GhidraScriptProvider
    • getScriptInstance

      public ghidra.app.script.GhidraScript getScriptInstance(generic.jar.ResourceFile sourceFile, PrintWriter writer) throws ghidra.app.script.GhidraScriptLoadException
      Creates a new RubyScript instance for the given file and returns it.
      Specified by:
      getScriptInstance in class ghidra.app.script.GhidraScriptProvider
      Throws:
      ghidra.app.script.GhidraScriptLoadException
    • createNewScript

      public void createNewScript(generic.jar.ResourceFile newScript, String category) throws IOException
      Creates a new script file for the given script and category.
      Specified by:
      createNewScript in class ghidra.app.script.GhidraScriptProvider
      Throws:
      IOException
    • getCommentCharacter

      public String getCommentCharacter()
      The comment character for ruby scripts.
      Specified by:
      getCommentCharacter in class ghidra.app.script.GhidraScriptProvider