Class SourceOptions
- java.lang.Object
- org.springframework.boot.cli.command.options.SourceOptions
public class SourceOptions extends Object
Extract source file options (anything following '--' in anOptionSet).
Constructor Summary
Constructors Constructor Description SourceOptions(List<?> arguments)Create a newSourceOptionsinstance.SourceOptions(joptsimple.OptionSet options)Create a newSourceOptionsinstance.SourceOptions(joptsimple.OptionSet optionSet, ClassLoader classLoader)Create a newSourceOptionsinstance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<?>getArgs()String[]getArgsArray()List<String>getSources()String[]getSourcesArray()
Constructor Detail
SourceOptions
public SourceOptions(joptsimple.OptionSet options)
Create a newSourceOptionsinstance.- Parameters:
options- the source option set
SourceOptions
public SourceOptions(List<?> arguments)
Create a newSourceOptionsinstance.- Parameters:
arguments- the source arguments
SourceOptions
public SourceOptions(joptsimple.OptionSet optionSet, ClassLoader classLoader)
Create a newSourceOptionsinstance. 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).- Parameters:
optionSet- the source option setclassLoader- an optional classloader used to try and load files that are not found in the local filesystem
Method Detail
getArgsArray
public String[] getArgsArray()
getSources
public List<String> getSources()
getSourcesArray
public String[] getSourcesArray()