| 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)
OptionSetprotected void logNewLine()
OptionSetlogNewLine in class OptionSetprotected String computeKey(String name)
OptionSetcomputeKey in class OptionSetname - The option name.protected void warn(Option o, String message)
OptionSetprotected void fail(Option o, String message)
OptionSetprotected int bytesToPages(Extent bytes)
OptionSetbytesToPages in class OptionSetbytes - The number of bytes.protected Extent pagesToBytes(int pages)
OptionSetpagesToBytes in class OptionSetpages - the number of pages.