Package org.openjdk.asmtools
Class Main
java.lang.Object
org.openjdk.asmtools.Main
Wrapper class that reads the first command line argument and invokes a corresponding
tool.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final I18NResourceBundle
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Invokes jasm main class with passed argumentsstatic void
Invokes jcoder main class with passed argumentsstatic void
Invokes jdec main class with passed argumentsstatic void
Invokes jdis main class with passed argumentsstatic void
Parses the first argument and delegates execution to an appropriate toolstatic void
Prints the tools versionstatic void
Prints usage info and error message, afterwards invokes System.exit()
-
Field Details
-
VERSION_SWITCH
- See Also:
-
STDIN_SWITCH
- See Also:
-
DIR_SWITCH
- See Also:
-
DUAL_LOG_SWITCH
- See Also:
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
Parses the first argument and delegates execution to an appropriate tool- Parameters:
args
- - command line arguments
-
usage
Prints usage info and error message, afterwards invokes System.exit()- Parameters:
msg
- - error message to print, or null if no errors occurredexitCode
- - exit code to be returned by System.exit()
-
printVersion
public static void printVersion()Prints the tools version -
jasm
Invokes jasm main class with passed arguments -
jcoder
Invokes jcoder main class with passed arguments -
jdec
Invokes jdec main class with passed arguments -
jdis
Invokes jdis main class with passed arguments
-