Skip to main content

OpCode

Enum OpCode 

Source
#[repr(u8)]
pub enum OpCode {
Show 205 variants nop = 0, aconst_null = 1, iconst_m1 = 2, iconst_0 = 3, iconst_1 = 4, iconst_2 = 5, iconst_3 = 6, iconst_4 = 7, iconst_5 = 8, lconst_0 = 9, lconst_1 = 10, fconst_0 = 11, fconst_1 = 12, fconst_2 = 13, dconst_0 = 14, dconst_1 = 15, bipush = 16, sipush = 17, ldc = 18, ldc_w = 19, ldc2_w = 20, iload = 21, lload = 22, fload = 23, dload = 24, aload = 25, iload_0 = 26, iload_1 = 27, iload_2 = 28, iload_3 = 29, lload_0 = 30, lload_1 = 31, lload_2 = 32, lload_3 = 33, fload_0 = 34, fload_1 = 35, fload_2 = 36, fload_3 = 37, dload_0 = 38, dload_1 = 39, dload_2 = 40, dload_3 = 41, aload_0 = 42, aload_1 = 43, aload_2 = 44, aload_3 = 45, iaload = 46, laload = 47, faload = 48, daload = 49, aaload = 50, baload = 51, caload = 52, saload = 53, istore = 54, lstore = 55, fstore = 56, dstore = 57, astore = 58, istore_0 = 59, istore_1 = 60, istore_2 = 61, istore_3 = 62, lstore_0 = 63, lstore_1 = 64, lstore_2 = 65, lstore_3 = 66, fstore_0 = 67, fstore_1 = 68, fstore_2 = 69, fstore_3 = 70, dstore_0 = 71, dstore_1 = 72, dstore_2 = 73, dstore_3 = 74, astore_0 = 75, astore_1 = 76, astore_2 = 77, astore_3 = 78, iastore = 79, lastore = 80, fastore = 81, dastore = 82, aastore = 83, bastore = 84, castore = 85, sastore = 86, pop = 87, pop2 = 88, dup = 89, dup_x1 = 90, dup_x2 = 91, dup2 = 92, dup2_x1 = 93, dup2_x2 = 94, swap = 95, iadd = 96, ladd = 97, fadd = 98, dadd = 99, isub = 100, lsub = 101, fsub = 102, dsub = 103, imul = 104, lmul = 105, fmul = 106, dmul = 107, idiv = 108, ldiv = 109, fdiv = 110, ddiv = 111, irem = 112, lrem = 113, frem = 114, drem = 115, ineg = 116, lneg = 117, fneg = 118, dneg = 119, ishl = 120, lshl = 121, ishr = 122, lshr = 123, iushr = 124, lushr = 125, iand = 126, land = 127, ior = 128, lor = 129, ixor = 130, lxor = 131, iinc = 132, i2l = 133, i2f = 134, i2d = 135, l2i = 136, l2f = 137, l2d = 138, f2i = 139, f2l = 140, f2d = 141, d2i = 142, d2l = 143, d2f = 144, i2b = 145, i2c = 146, i2s = 147, lcmp = 148, fcmpl = 149, fcmpg = 150, dcmpl = 151, dcmpg = 152, ifeq = 153, ifne = 154, iflt = 155, ifge = 156, ifgt = 157, ifle = 158, if_icmpeq = 159, if_icmpne = 160, if_icmplt = 161, if_icmpge = 162, if_icmpgt = 163, if_icmple = 164, if_acmpeq = 165, if_acmpne = 166, goto = 167, jsr = 168, ret = 169, tableswitch = 170, lookupswitch = 171, ireturn = 172, lreturn = 173, freturn = 174, dreturn = 175, areturn = 176, return_void = 177, getstatic = 178, putstatic = 179, getfield = 180, putfield = 181, invokevirtual = 182, invokespecial = 183, invokestatic = 184, invokeinterface = 185, invokedynamic = 186, new = 187, newarray = 188, anewarray = 189, arraylength = 190, athrow = 191, checkcast = 192, instanceof = 193, monitorenter = 194, monitorexit = 195, wide = 196, multianewarray = 197, ifnull = 198, ifnonnull = 199, goto_w = 200, jsr_w = 201, breakpoint = 202, impdep1 = 254, impdep2 = 255,
}

Variants§

§

nop = 0

§

aconst_null = 1

§

iconst_m1 = 2

§

iconst_0 = 3

§

iconst_1 = 4

§

iconst_2 = 5

§

iconst_3 = 6

§

iconst_4 = 7

§

iconst_5 = 8

§

lconst_0 = 9

§

lconst_1 = 10

§

fconst_0 = 11

§

fconst_1 = 12

§

fconst_2 = 13

§

dconst_0 = 14

§

dconst_1 = 15

§

bipush = 16

§

sipush = 17

§

ldc = 18

§

ldc_w = 19

§

ldc2_w = 20

§

iload = 21

§

lload = 22

§

fload = 23

§

dload = 24

§

aload = 25

§

iload_0 = 26

§

iload_1 = 27

§

iload_2 = 28

§

iload_3 = 29

§

lload_0 = 30

§

lload_1 = 31

§

lload_2 = 32

§

lload_3 = 33

§

fload_0 = 34

§

fload_1 = 35

§

fload_2 = 36

§

fload_3 = 37

§

dload_0 = 38

§

dload_1 = 39

§

dload_2 = 40

§

dload_3 = 41

§

aload_0 = 42

§

aload_1 = 43

§

aload_2 = 44

§

aload_3 = 45

§

iaload = 46

§

laload = 47

§

faload = 48

§

daload = 49

§

aaload = 50

§

baload = 51

§

caload = 52

§

saload = 53

§

istore = 54

§

lstore = 55

§

fstore = 56

§

dstore = 57

§

astore = 58

§

istore_0 = 59

§

istore_1 = 60

§

istore_2 = 61

§

istore_3 = 62

§

lstore_0 = 63

§

lstore_1 = 64

§

lstore_2 = 65

§

lstore_3 = 66

§

fstore_0 = 67

§

fstore_1 = 68

§

fstore_2 = 69

§

fstore_3 = 70

§

dstore_0 = 71

§

dstore_1 = 72

§

dstore_2 = 73

§

dstore_3 = 74

§

astore_0 = 75

§

astore_1 = 76

§

astore_2 = 77

§

astore_3 = 78

§

iastore = 79

§

lastore = 80

§

fastore = 81

§

dastore = 82

§

aastore = 83

§

bastore = 84

§

castore = 85

§

sastore = 86

§

pop = 87

§

pop2 = 88

§

dup = 89

§

dup_x1 = 90

§

dup_x2 = 91

§

dup2 = 92

§

dup2_x1 = 93

§

dup2_x2 = 94

§

swap = 95

§

iadd = 96

§

ladd = 97

§

fadd = 98

§

dadd = 99

§

isub = 100

§

lsub = 101

§

fsub = 102

§

dsub = 103

§

imul = 104

§

lmul = 105

§

fmul = 106

§

dmul = 107

§

idiv = 108

§

ldiv = 109

§

fdiv = 110

§

ddiv = 111

§

irem = 112

§

lrem = 113

§

frem = 114

§

drem = 115

§

ineg = 116

§

lneg = 117

§

fneg = 118

§

dneg = 119

§

ishl = 120

§

lshl = 121

§

ishr = 122

§

lshr = 123

§

iushr = 124

§

lushr = 125

§

iand = 126

§

land = 127

§

ior = 128

§

lor = 129

§

ixor = 130

§

lxor = 131

§

iinc = 132

§

i2l = 133

§

i2f = 134

§

i2d = 135

§

l2i = 136

§

l2f = 137

§

l2d = 138

§

f2i = 139

§

f2l = 140

§

f2d = 141

§

d2i = 142

§

d2l = 143

§

d2f = 144

§

i2b = 145

§

i2c = 146

§

i2s = 147

§

lcmp = 148

§

fcmpl = 149

§

fcmpg = 150

§

dcmpl = 151

§

dcmpg = 152

§

ifeq = 153

§

ifne = 154

§

iflt = 155

§

ifge = 156

§

ifgt = 157

§

ifle = 158

§

if_icmpeq = 159

§

if_icmpne = 160

§

if_icmplt = 161

§

if_icmpge = 162

§

if_icmpgt = 163

§

if_icmple = 164

§

if_acmpeq = 165

§

if_acmpne = 166

§

goto = 167

§

jsr = 168

§

ret = 169

§

tableswitch = 170

§

lookupswitch = 171

§

ireturn = 172

§

lreturn = 173

§

freturn = 174

§

dreturn = 175

§

areturn = 176

§

return_void = 177

§

getstatic = 178

§

putstatic = 179

§

getfield = 180

§

putfield = 181

§

invokevirtual = 182

§

invokespecial = 183

§

invokestatic = 184

§

invokeinterface = 185

§

invokedynamic = 186

§

new = 187

§

newarray = 188

§

anewarray = 189

§

arraylength = 190

§

athrow = 191

§

checkcast = 192

§

instanceof = 193

§

monitorenter = 194

§

monitorexit = 195

§

wide = 196

§

multianewarray = 197

§

ifnull = 198

§

ifnonnull = 199

§

goto_w = 200

§

jsr_w = 201

§

breakpoint = 202

§

impdep1 = 254

§

impdep2 = 255

Trait Implementations§

Source§

impl Clone for OpCode

Source§

fn clone(&self) -> OpCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OpCode

Source§

impl Debug for OpCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for OpCode

Source§

impl From<u8> for OpCode

Source§

fn from(v: u8) -> Self

Converts to this type from the input type.
Source§

impl Into<&'static str> for OpCode

Source§

fn into(self) -> &'static str

Converts this type into the (usually inferred) input type.
Source§

impl PartialEq for OpCode

Source§

fn eq(&self, other: &OpCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for OpCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.