public abstract class LanguageLauncherBase extends Launcher
Launcher.AbortException, Launcher.OS, Launcher.VersionAction, Launcher.VMTypeLAUNCHER_OPTIONS_INDENT| Constructor and Description |
|---|
LanguageLauncherBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
argumentsProcessingDone() |
protected void |
collectArguments(Set<String> options)
Add all known arguments to the
options list. |
protected org.graalvm.options.OptionDescriptor |
findOptionDescriptor(String group,
String key)
Finds the a descriptor for the option.
|
protected void |
maybePrintAdditionalHelp(org.graalvm.options.OptionCategory helpCategory)
Should print tool-specific help.
|
protected boolean |
parseCommonOption(String defaultOptionPrefix,
Map<String,String> polyglotOptions,
boolean experimentalOptions,
String arg)
Parses an option, returning success.
|
protected void |
printDefaultHelp(org.graalvm.options.OptionCategory helpCategory)
Prints default help text.
|
protected void |
printPolyglotVersions()
Prints version information about all known languages and
instruments on stdout.
|
protected boolean |
runLauncherAction()
Runs launcher's action as version print or help.
|
abort, abort, abort, abort, abort, abort, abortInvalidArgument, abortInvalidArgument, abortUnrecognizedArgument, canPolyglot, executeJVM, executePolyglot, exit, exit, getDefaultVMType, getError, getGraalVMBinaryPath, getGraalVMHome, getLogFile, getMainClass, getOutput, getProgramName, isAOT, isGraalVMAvailable, isStandalone, isTTY, launcherOption, maybeNativeExec, newLogStream, parseUnrecognizedOptions, printHelp, println, println, printOtherHelpCategory, printVersion, setError, setOptionIndent, setOutput, warn, warnprotected void argumentsProcessingDone()
protected boolean runLauncherAction()
Launchertrue, if the execution
should terminate, e.g. after printing help. Launcher.parseCommonOption(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, boolean, java.lang.String) should be called for
commandline argument(s) prior to this method to set up flags to display help etc.runLauncherAction in class Launchertrue when execution should be terminated.protected boolean parseCommonOption(String defaultOptionPrefix, Map<String,String> polyglotOptions, boolean experimentalOptions, String arg)
Launchertrue.parseCommonOption in class LauncherdefaultOptionPrefix - default prefix for the option names, derived from the launching
application.polyglotOptions - options for polyglot engineexperimentalOptions - true, if experimental options are explicitly allowedarg - argument to parseprotected void printDefaultHelp(org.graalvm.options.OptionCategory helpCategory)
LauncherprintDefaultHelp in class LauncherhelpCategory - options category to print.protected void maybePrintAdditionalHelp(org.graalvm.options.OptionCategory helpCategory)
LaunchermaybePrintAdditionalHelp in class LauncherhelpCategory - category of options to printprotected void printPolyglotVersions()
protected org.graalvm.options.OptionDescriptor findOptionDescriptor(String group, String key)
LauncherfindOptionDescriptor in class Launchergroup - option groupkey - the option name (including the group)null.protected void collectArguments(Set<String> options)
Launcheroptions list.collectArguments in class Launcheroptions - list to which valid arguments must be added.