Modifier and Type | Field and Description |
---|---|
static OptionSet |
gc |
private String |
prefix |
Modifier | Constructor and Description |
---|---|
private |
OptionSet(String prefix) |
Modifier and Type | Method and Description |
---|---|
protected int |
bytesToPages(Extent bytes)
Convert bytes into pages, rounding up if necessary.
|
protected String |
computeKey(String name)
Determine the VM specific key for a given option name.
|
protected void |
fail(Option o,
String message)
A fatal error occurred during the setting of an option.
|
protected void |
logNewLine()
Print a new line.
|
protected void |
logString(String s)
Log a string.
|
protected void |
logValue(Option o,
boolean forXml)
Format and log an option value.
|
protected Extent |
pagesToBytes(int pages)
Convert from pages into bytes.
|
void |
printHelp()
Print a short description of every option
|
void |
printOptions()
Print out the option values
|
boolean |
process(String arg)
Take a string (most likely a command-line argument) and try to proccess it
as an option command.
|
protected void |
warn(Option o,
String message)
A non-fatal error occurred during the setting of an option.
|
public boolean process(String arg)
arg
- a String to try to process as an option commandtrue
if successful, false
otherwisepublic void printHelp()
public void printOptions()
protected void logValue(Option o, boolean forXml)
OptionSet
protected void logNewLine()
OptionSet
logNewLine
in class OptionSet
protected String computeKey(String name)
OptionSet
computeKey
in class OptionSet
name
- The option name.protected void warn(Option o, String message)
OptionSet
protected void fail(Option o, String message)
OptionSet
protected int bytesToPages(Extent bytes)
OptionSet
bytesToPages
in class OptionSet
bytes
- The number of bytes.protected Extent pagesToBytes(int pages)
OptionSet
pagesToBytes
in class OptionSet
pages
- the number of pages.