|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.config.OptionParser<T>
edu.rice.cs.drjava.config.Option<java.lang.Boolean>
edu.rice.cs.drjava.config.BooleanOption
public class BooleanOption
Class defining all configuration options with values of type Boolean.
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.drjava.config.Option |
|---|
listeners |
| Fields inherited from class edu.rice.cs.drjava.config.OptionParser |
|---|
defaultValue, map, name |
| Constructor Summary | |
|---|---|
BooleanOption(java.lang.String key,
java.lang.Boolean def)
|
|
| Method Summary | |
|---|---|
java.lang.Boolean |
parse(java.lang.String s)
The ability to parse a string to an object of type T. |
| Methods inherited from class edu.rice.cs.drjava.config.Option |
|---|
addListener, format, getDefaultString, getString, notifyListeners, removeListener |
| Methods inherited from class edu.rice.cs.drjava.config.OptionParser |
|---|
getDefault, getName, getOption, remove, setOption, setString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanOption(java.lang.String key,
java.lang.Boolean def)
key - The name of this option.| Method Detail |
|---|
public java.lang.Boolean parse(java.lang.String s)
OptionParser
parse in interface ParseStrategy<java.lang.Boolean>parse in class OptionParser<java.lang.Boolean>s - The String to be parsed.
java.lang.IllegalArgumentException - if "s" is
not one of the Strings "true" and "false".
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||