public static enum AMD64Address.Scale extends Enum<AMD64Address.Scale>
Modifier and Type | Field and Description |
---|---|
int |
log2
The value of this scale log 2.
|
int |
value
The value (or multiplier) of this scale.
|
Modifier and Type | Method and Description |
---|---|
static AMD64Address.Scale |
fromInt(int scale) |
static AMD64Address.Scale |
fromShift(int shift) |
static AMD64Address.Scale |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AMD64Address.Scale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AMD64Address.Scale Times1
public static final AMD64Address.Scale Times2
public static final AMD64Address.Scale Times4
public static final AMD64Address.Scale Times8
public final int value
public static AMD64Address.Scale[] values()
for (AMD64Address.Scale c : AMD64Address.Scale.values()) System.out.println(c);
public static AMD64Address.Scale valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AMD64Address.Scale fromInt(int scale)
public static AMD64Address.Scale fromShift(int shift)