public class CommandLineParser extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static interface |
CommandLineParser.ArgumentHandler
A handler for unrecognized arguments, meant to be implemented by classes that wants to extend the
behaviour of
CommandLineParser. |
| Constructor and Description |
|---|
CommandLineParser(String[] args,
ClassLoader parentClassLoader)
Constructor
|
CommandLineParser(String[] args,
ClassLoader parentClassLoader,
boolean ignoreFile)
Constructor
|
CommandLineParser(String[] args,
ClassLoader parentClassLoader,
CommandLineParser.ArgumentHandler argHandler)
Constructor
|
CommandLineParser(String[] args,
ClassLoader parentClassLoader,
CommandLineParser.ArgumentHandler argHandler,
boolean ignoreFile)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
cellId() |
void |
close()
Closes the underlying
InputStream to the target Jolie program. |
protected String |
getHelpString()
Returns the usage help message of Jolie.
|
jolie.Interpreter.Configuration |
getInterpreterConfiguration() |
public CommandLineParser(String[] args, ClassLoader parentClassLoader) throws CommandLineException, IOException
args - the command line argumentsparentClassLoader - the ClassLoader to use for finding resourcesCommandLineException - if the command line is not valid or asks for simple information.
(like --help and --version)IOExceptionpublic CommandLineParser(String[] args, ClassLoader parentClassLoader, CommandLineParser.ArgumentHandler argHandler) throws CommandLineException, IOException
args - the command line argumentsparentClassLoader - the ClassLoader to use for finding resourcesargHandler - CommandLineExceptionIOExceptionpublic CommandLineParser(String[] args, ClassLoader parentClassLoader, boolean ignoreFile) throws CommandLineException, IOException
args - the command line argumentsparentClassLoader - the ClassLoader to use for finding resourcesignoreFile - do not open file that is given as parameter (used for internal services)CommandLineExceptionIOExceptionpublic CommandLineParser(String[] args, ClassLoader parentClassLoader, CommandLineParser.ArgumentHandler argHandler, boolean ignoreFile) throws CommandLineException, IOException
args - the command line argumentsparentClassLoader - the ClassLoader to use for finding resourcesargHandler - ignoreFile - do not open file that is given as parameter (used for internal services)CommandLineExceptionIOExceptionpublic void close()
throws IOException
InputStream to the target Jolie program.close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int cellId()
protected String getHelpString()
public jolie.Interpreter.Configuration getInterpreterConfiguration()
throws CommandLineException,
IOException
CommandLineExceptionIOExceptionCopyright © 2021. All rights reserved.