public final class Arguments extends Object
CommandArgs.| Modifier and Type | Method and Description |
|---|---|
static CommandArgs |
copyOf(List<String> arguments)
Create an argument stack from a list of string arguments using
an empty namespace.
|
static CommandArgs |
copyOf(List<String> arguments,
Map<Character,String> flags)
Create an argument stack from a list of string arguments.
|
static CommandArgs |
copyOf(List<String> arguments,
Map<Character,String> flags,
Namespace namespace)
Create an argument stack from a list of string arguments.
|
static CommandArgs |
of(String... arguments)
Create an argument stack from a list of string arguments using
an empty namespace.
|
static CommandArgs |
viewOf(CommandContext context)
Create an argument stack from a CommandContext.
|
public static CommandArgs viewOf(CommandContext context)
context - The instance of a CommandContextpublic static CommandArgs copyOf(List<String> arguments)
arguments - The list of string argumentspublic static CommandArgs of(String... arguments)
arguments - The array of string argumentspublic static CommandArgs copyOf(List<String> arguments, Map<Character,String> flags)
arguments - The list of string argumentsflags - A map of flags, where the key is the flag and the value may be nullpublic static CommandArgs copyOf(List<String> arguments, Map<Character,String> flags, Namespace namespace)
arguments - The list of string argumentsflags - A map of flags, where the key is the flag and the value may be nullnamespace - The associated namespaceCopyright © 2015. All Rights Reserved.