Package com.android.dx.io.instructions
Enum Class InstructionCodec
- All Implemented Interfaces:
Serializable
,Comparable<InstructionCodec>
,Constable
Representation of an instruction format, which knows how to decode into
and encode from instances of
DecodedInstruction
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract DecodedInstruction
Decodes an instruction specified by the given opcode unit, reading any required additional code units from the given input source.abstract void
encode
(DecodedInstruction insn, CodeOutput out) Encodes the given instruction.static InstructionCodec
Returns the enum constant of this class with the specified name.static InstructionCodec[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORMAT_00X
-
FORMAT_10X
-
FORMAT_12X
-
FORMAT_11N
-
FORMAT_11X
-
FORMAT_10T
-
FORMAT_20T
-
FORMAT_20BC
-
FORMAT_22X
-
FORMAT_21T
-
FORMAT_21S
-
FORMAT_21H
-
FORMAT_21C
-
FORMAT_23X
-
FORMAT_22B
-
FORMAT_22T
-
FORMAT_22S
-
FORMAT_22C
-
FORMAT_22CS
-
FORMAT_30T
-
FORMAT_32X
-
FORMAT_31I
-
FORMAT_31T
-
FORMAT_31C
-
FORMAT_35C
-
FORMAT_35MS
-
FORMAT_35MI
-
FORMAT_3RC
-
FORMAT_3RMS
-
FORMAT_3RMI
-
FORMAT_51L
-
FORMAT_45CC
-
FORMAT_4RCC
-
FORMAT_PACKED_SWITCH_PAYLOAD
-
FORMAT_SPARSE_SWITCH_PAYLOAD
-
FORMAT_FILL_ARRAY_DATA_PAYLOAD
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
decode
Decodes an instruction specified by the given opcode unit, reading any required additional code units from the given input source.- Throws:
EOFException
-
encode
Encodes the given instruction.
-