| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private static Map | |
| private List | |
| private Map | |
| private List | |
| private List | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ParametersImpl(List<String>
list of command line arguments args)Constructs an Parameters object from the specified list of arguments. |
| public | ParametersImpl(String[]
array of command line arguments args)Constructs an Parameters object from the specified array of unnamed parameters. |
| public | ParametersImpl(Map<K, V>
a map of parameters from which to initialize this
object. params, String[] arguments)Constructs an Parameters object from the specified map of named parameters. |
| Modifier and Type | Method and Description |
|---|---|
| private void | computeNamedParams()
This method parses the current array of raw arguments looking for name,value pairs. |
| private void | computeRawArgs()
This method creates string representations of the name,value pairs in the map for this Parameters object, and appends those strings to the raw arguments array. |
| private void | computeUnnamedParams()
This method computes the list of unnamed parameters, by filtering the list of raw arguments, stripping out the named parameters. |
| public Map | getNamed()
Implements abstract javafx. Retrieves a read-only map of the named parameters. |
| public static Application. | |
| public List | getRaw()
Implements abstract javafx. Retrieves a read-only list of the raw arguments. |
| public List | getUnnamed()
Implements abstract javafx. Retrieves a read-only list of the unnamed parameters. |
| private void | |
| private void | |
| private boolean | Returns: true if the string matches the pattern for a named parameter.the string to check arg)Returns true if the specified string is a named parameter of the form: --name=value |
| public static void | |
| private boolean | Returns: whether or not it is validthe first char of a key string c)Validate the first character of a key. |
| private boolean |
| namedParams | back to summary |
|---|---|
| private Map<String, String> namedParams | |
| params | back to summary |
|---|---|
| private static Map<Application, Application. | |
| rawArgs | back to summary |
|---|---|
| private List<String> rawArgs | |
| readonlyNamedParams | back to summary |
|---|---|
| private Map<String, String> readonlyNamedParams | |
| readonlyRawArgs | back to summary |
|---|---|
| private List<String> readonlyRawArgs | |
| readonlyUnnamedParams | back to summary |
|---|---|
| private List<String> readonlyUnnamedParams | |
| unnamedParams | back to summary |
|---|---|
| private List<String> unnamedParams | |
| ParametersImpl | back to summary |
|---|---|
| public ParametersImpl() Constructs an empty Parameters object. | |
| ParametersImpl | back to summary |
|---|---|
| public ParametersImpl(List<String> args) Constructs an Parameters object from the specified list of arguments. The list may be null. | |
| ParametersImpl | back to summary |
|---|---|
| public ParametersImpl(String[] args) Constructs an Parameters object from the specified array of unnamed parameters. The array may be null.
| |
| ParametersImpl | back to summary |
|---|---|
| public ParametersImpl(Map<K, V> params, String[] arguments) Constructs an Parameters object from the specified map of named parameters.
| |
| computeNamedParams | back to summary |
|---|---|
| private void computeNamedParams() This method parses the current array of raw arguments looking for name,value pairs. These name,value pairs are then added to the map for this parameters object, and are of the form: --name=value. | |
| computeRawArgs | back to summary |
|---|---|
| private void computeRawArgs() This method creates string representations of the name,value pairs in the map for this Parameters object, and appends those strings to the raw arguments array. The newly added strings are of the form: "--name=value". | |
| computeUnnamedParams | back to summary |
|---|---|
| private void computeUnnamedParams() This method computes the list of unnamed parameters, by filtering the list of raw arguments, stripping out the named parameters. | |
| getNamed | back to summary |
|---|---|
| public Map Implements abstract javafx. Doc from javafx. Retrieves a read-only map of the named parameters. It may be empty, but is never null. Named parameters include any command line arguments of the form: "--name=value".
| |
| getParameters | back to summary |
|---|---|
| public static Application. | |
| getRaw | back to summary |
|---|---|
| public List Implements abstract javafx. Doc from javafx. Retrieves a read-only list of the raw arguments. This list may be empty, but is never null. In the case of a standalone application, it is the ordered list of arguments specified on the command line. For named parameters, each <name,value> pair is represented as a single argument of the form: "--name=value".
| |
| getUnnamed | back to summary |
|---|---|
| public List Implements abstract javafx. Doc from javafx. Retrieves a read-only list of the unnamed parameters. This list may be empty, but is never null. The named parameters, that is the parameters that are represented as <name,value> pairs, are filtered out.
| |
| init | back to summary |
|---|---|
| private void init(List<String> args) Initialize this Parameters object from the set of command line arguments. Null elements are elided. | |
| init | back to summary |
|---|---|
| private void init(Map<K, V> params, String[] arguments) Constructs an Parameters object from the specified map of named parameters.
| |
| isNamedParam | back to summary |
|---|---|
| private boolean isNamedParam(String arg) Returns true if the specified string is a named parameter of the form: --name=value
| |
| registerParameters | back to summary |
|---|---|
| public static void registerParameters(Application app, Application. | |
| validFirstChar | back to summary |
|---|---|
| private boolean validFirstChar(char c) Validate the first character of a key. It is valid if it is a letter or an "_" character.
| |
| validKey | back to summary |
|---|---|
| private boolean validKey(Object key) Validate the key. A key is valid if it is a String object that starts with a letter or "_" character and does not contain an "=" character.
| |