Enum AddressModeSWEET16
- java.lang.Object
-
- java.lang.Enum<AddressModeSWEET16>
-
- io.github.applecommander.disassembler.api.sweet16.AddressModeSWEET16
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AddressModeSWEET16>
public enum AddressModeSWEET16 extends java.lang.Enum<AddressModeSWEET16>
-
-
Field Summary
Fields Modifier and Type Field Description static AddressModeSWEET16[]
NON_REGISTER_OPS
static AddressModeSWEET16[]
REGISTER_OPS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doesOperandRequireRegister()
java.lang.String
getInstructionFormat()
int
getInstructionLength()
boolean
isOperandAbsoluteAddress()
boolean
isOperandRelativeAddress()
static AddressModeSWEET16
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AddressModeSWEET16[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CON
public static final AddressModeSWEET16 CON
-
ABS
public static final AddressModeSWEET16 ABS
-
DIR
public static final AddressModeSWEET16 DIR
-
IND
public static final AddressModeSWEET16 IND
-
BRA
public static final AddressModeSWEET16 BRA
-
IMP
public static final AddressModeSWEET16 IMP
-
-
Field Detail
-
REGISTER_OPS
public static AddressModeSWEET16[] REGISTER_OPS
-
NON_REGISTER_OPS
public static AddressModeSWEET16[] NON_REGISTER_OPS
-
-
Method Detail
-
values
public static AddressModeSWEET16[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AddressModeSWEET16 c : AddressModeSWEET16.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressModeSWEET16 valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getInstructionLength
public int getInstructionLength()
-
getInstructionFormat
public java.lang.String getInstructionFormat()
-
isOperandAbsoluteAddress
public boolean isOperandAbsoluteAddress()
-
isOperandRelativeAddress
public boolean isOperandRelativeAddress()
-
doesOperandRequireRegister
public boolean doesOperandRequireRegister()
-
-