Package ghidra.pcodeCPort.slgh_compile
Class SleighCompileLauncher
- java.lang.Object
-
- ghidra.pcodeCPort.slgh_compile.SleighCompileLauncher
-
- All Implemented Interfaces:
GhidraLaunchable
public class SleighCompileLauncher extends java.lang.Object implements GhidraLaunchable
SleighCompileLauncher
Sleigh compiler launch provider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILE_IN_DEFAULT_EXT
static java.lang.String
FILE_OUT_DEFAULT_EXT
-
Constructor Summary
Constructors Constructor Description SleighCompileLauncher()
-
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
-
-
-
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
-
-
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 interfaceGhidraLaunchable
- Parameters:
layout
- The application layout to use for the launch.args
- The arguments passed through by theGhidraLauncher
.- 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 argumentspreprocs
- additional preprocessor macro- Returns:
- exit code (TODO: exit codes are not well defined)
- Throws:
org.jdom.JDOMException
java.io.IOException
org.antlr.runtime.RecognitionException
-
-