Class SleighCompileLauncher

  • All Implemented Interfaces:
    GhidraLaunchable

    public class SleighCompileLauncher
    extends java.lang.Object
    implements GhidraLaunchable
    SleighCompileLauncher Sleigh compiler launch provider
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void launch​(GhidraApplicationLayout layout, java.lang.String[] args)
      Launches the launchable.
      static int runMain​(java.lang.String[] args, java.util.Map<java.lang.String,​java.lang.String> preprocs)
      Execute the Sleigh compiler process
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FILE_IN_DEFAULT_EXT

        public static final java.lang.String FILE_IN_DEFAULT_EXT
        See Also:
        Constant Field Values
      • FILE_OUT_DEFAULT_EXT

        public static final java.lang.String FILE_OUT_DEFAULT_EXT
        See Also:
        Constant Field Values
    • Constructor Detail

      • SleighCompileLauncher

        public SleighCompileLauncher()
    • Method Detail

      • launch

        public void launch​(GhidraApplicationLayout layout,
                           java.lang.String[] args)
                    throws org.jdom.JDOMException,
                           java.io.IOException,
                           org.antlr.runtime.RecognitionException
        Description copied from interface: GhidraLaunchable
        Launches the launchable.
        Specified by:
        launch in interface GhidraLaunchable
        Parameters:
        layout - The application layout to use for the launch.
        args - The arguments passed through by the GhidraLauncher.
        Throws:
        org.jdom.JDOMException
        java.io.IOException
        org.antlr.runtime.RecognitionException
      • runMain

        public static int runMain​(java.lang.String[] args,
                                  java.util.Map<java.lang.String,​java.lang.String> preprocs)
                           throws org.jdom.JDOMException,
                                  java.io.IOException,
                                  org.antlr.runtime.RecognitionException
        Execute the Sleigh compiler process
        Parameters:
        args - sleigh compiler command line arguments
        preprocs - additional preprocessor macro
        Returns:
        exit code (TODO: exit codes are not well defined)
        Throws:
        org.jdom.JDOMException
        java.io.IOException
        org.antlr.runtime.RecognitionException