public class SourceOptions extends Object
OptionSet
).Constructor and Description |
---|
SourceOptions(List<?> arguments)
Create a new
SourceOptions instance. |
SourceOptions(joptsimple.OptionSet options)
Create a new
SourceOptions instance. |
SourceOptions(joptsimple.OptionSet optionSet,
ClassLoader classLoader)
Create a new
SourceOptions instance. |
Modifier and Type | Method and Description |
---|---|
List<?> |
getArgs() |
String[] |
getArgsArray() |
List<String> |
getSources() |
String[] |
getSourcesArray() |
public SourceOptions(joptsimple.OptionSet options)
SourceOptions
instance.options
- the source option setpublic SourceOptions(List<?> arguments)
SourceOptions
instance.arguments
- the source argumentspublic SourceOptions(joptsimple.OptionSet optionSet, ClassLoader classLoader)
SourceOptions
instance. If it is an error to pass options that
specify non-existent sources, but the default paths are allowed not to exist (the
paths are tested before use). If default paths are provided and the option set
contains no source file arguments it is not an error even if none of the default
paths exist).optionSet
- the source option setclassLoader
- an optional classloader used to try and load files that are not
found in the local filesystemCopyright © 2018 Pivotal Software, Inc.. All rights reserved.