public interface OperaArguments extends Iterable<OperaArgument>
OperaArgument's.| Modifier and Type | Method and Description |
|---|---|
void |
add(OperaArgument argument)
Adds a new argument to the command-line argument list representation.
|
void |
add(String argument)
Adds a new argument to the command-line argument list representation.
|
void |
add(String argument,
Object value)
Adds a new argument with a value to the command-line argument list representation.
|
OperaArgument |
get(int index)
Convenience method to access the given indexed argument in the command-line list
representation.
|
List<OperaArgument> |
getArguments()
Gets the list of all arguments, each represented by
OperaArgument. |
List<String> |
getArgumentsAsStringList()
Gets all arguments as a string list, including the argument's values.
|
Iterator<OperaArgument> |
iterator()
Gets an iterator for all arguments present in this collection.
|
OperaArguments |
merge(OperaArguments extraArguments)
Merge this command-line list representation with another representation.
|
void |
remove(OperaArgument argument)
Removes the specified argument from the command-line argument list representation.
|
String |
sign()
Gets the command-line argument sign used by this implementation of
OperaArguments. |
int |
size()
Fetches the number of arguments in the command-line list representation.
|
String |
toString()
Gets the string representation of the command-line, as it would be used externally.
|
void add(String argument)
OperaArgument will be created with an empty value.argument - the argument key to addvoid add(String argument, Object value)
OperaArgument will be created with specified value.argument - the argument key to addvalue - the value the argument should holdvoid add(OperaArgument argument)
OperaArgument can optionally hold a value.argument - the argument to addvoid remove(OperaArgument argument)
argument - the argument to removeOperaArgument get(int index)
OperaArguments.getArguments().get(x).index - the argument to fetchList<OperaArgument> getArguments()
OperaArgument.Iterator<OperaArgument> iterator()
iterator in interface Iterable<OperaArgument>List<String> getArgumentsAsStringList()
String toString()
int size()
OperaArguments.getArguments().size().OperaArguments merge(OperaArguments extraArguments)
OperaArguments
object.extraArguments - the OperaArguments to merge into thisString sign()
OperaArguments.
Depending on which implementation (OperaCoreArguments,
OperaDesktopArguments) you are using, you will get a
OperaArgument.OperaArgumentSign.OperaArgument.OperaArgumentSignCopyright © 2012. All Rights Reserved.