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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidInvokes jasm main class with passed argumentsstatic voidInvokes jcoder main class with passed argumentsstatic voidInvokes jdec main class with passed argumentsstatic voidInvokes jdis main class with passed argumentsstatic voidParses the first argument and delegates execution to an appropriate toolstatic voidPrints the tools versionstatic voidPrints usage info and error message, afterwards invokes System.exit()
-
Field Details
-
VERSION_SWITCH
- See Also:
-
STDIN_SWITCH
- See Also:
-
DIR_SWITCH
- See Also:
-
WRITE_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
-