|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Parameter>
com.github.croesch.micro_debug.commons.Parameter
public enum Parameter
Represents the different types of parameter that are possible.
| Enum Constant Summary | |
|---|---|
NUMBER
the numerical argument, can be decimal or every other basis |
|
REGISTER
a Register as argument |
|
| Method Summary | |
|---|---|
Object |
getValue(String str)
Converts the given String to an object that has the expected type. |
protected abstract Object |
toValue(String str)
Converts the given String to an object that has the expected type. |
static Parameter |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Parameter[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Parameter NUMBER
public static final Parameter REGISTER
Register as argument
| Method Detail |
|---|
public static Parameter[] values()
for (Parameter c : Parameter.values()) System.out.println(c);
public static Parameter valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullprotected abstract Object toValue(String str)
String to an object that has the expected type. Returns an object with the logical type
of the enumeration that has the given value. Returns null, if the given string is not a valid value.Printer) about a wrong value.
str - the value to convert into the correct data type, is not null
Object with the logical type of the enumeration that has the value given by the given string,null if the given String is no valid representation for any value of the data typepublic final Object getValue(String str)
String to an object that has the expected type. Returns an object with the logical type
of the enumeration that has the given value. Returns null, if the given string is not a valid value.
str - the value to convert into the correct data type, can be null
Object with the logical type of the enumeration that has the value given by the given string,null if the given String is no valid representation for any value of the data type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||