public class SourceOptions extends java.lang.Object
Extract source file options (anything following '--' in an OptionSet).
Constructor and description |
---|
SourceOptions(OptionSet options) Create a new SourceOptions instance. |
SourceOptions(java.util.List<?> arguments) Create a new SourceOptions instance. |
SourceOptions(OptionSet optionSet, java.lang.ClassLoader classLoader) Create a new SourceOptions instance. |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.util.List<?> |
getArgs() |
|
public java.lang.String[] |
getArgsArray() |
|
public java.util.List<java.lang.String> |
getSources() |
|
public java.lang.String[] |
getSourcesArray() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new SourceOptions instance.
options
- the source option setCreate a new SourceOptions instance.
arguments
- the source argumentsCreate a new 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 filesystem