Package com.biglybt.ui.console.commands
Class Set
- java.lang.Object
-
- com.biglybt.ui.console.commands.IConsoleCommand
-
- com.biglybt.ui.console.commands.Set
-
public class Set extends IConsoleCommand
command that allows manipulation of the client's runtime properties. - when called without any parameters, it lists all of the available runtime properties. - when called with 1 parameter, it shows the current value of that parameter - when called with 2 or 3 parameters, it assigns a specified value to the specified parameter name. (the third parameter forces the property to be set to a particular type, otherwise we try and guess the type by the current value)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
Set.ParameterDeprecated
class that represents a parameter.-
Nested classes/interfaces inherited from class com.biglybt.ui.console.commands.IConsoleCommand
IConsoleCommand.TorrentComparator
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
NULL_STRING
-
Constructor Summary
Constructors Constructor Description Set()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
displayOptions(java.io.PrintStream out, StringPattern sp, boolean non_defaults)
void
execute(java.lang.String commandName, ConsoleInput ci, java.util.List args)
execute the command with the specified name using the specified argumentsjava.lang.String
getCommandDescriptions()
return high-level help about the commands supported by this object.void
printHelpExtra(java.io.PrintStream out, java.util.List args)
protected static java.lang.String
quoteIfNeeded(java.lang.String str)
-
Methods inherited from class com.biglybt.ui.console.commands.IConsoleCommand
expandVariable, getCommandName, getCommandNames, getDefaultSummaryFormat, getShortCommandName, getTorrentSummary, printHelp, printHelp
-
-
-
-
Field Detail
-
NULL_STRING
private static final java.lang.String NULL_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommandDescriptions
public java.lang.String getCommandDescriptions()
Description copied from class:IConsoleCommand
return high-level help about the commands supported by this object.- Specified by:
getCommandDescriptions
in classIConsoleCommand
- Returns:
-
printHelpExtra
public void printHelpExtra(java.io.PrintStream out, java.util.List args)
- Overrides:
printHelpExtra
in classIConsoleCommand
-
execute
public void execute(java.lang.String commandName, ConsoleInput ci, java.util.List args)
Description copied from class:IConsoleCommand
execute the command with the specified name using the specified arguments- Specified by:
execute
in classIConsoleCommand
-
displayOptions
private void displayOptions(java.io.PrintStream out, StringPattern sp, boolean non_defaults)
-
quoteIfNeeded
protected static java.lang.String quoteIfNeeded(java.lang.String str)
-
-