Lines Matching refs:instruction

32 package org.jf.dexlib2.immutable.instruction;
37 import org.jf.dexlib2.iface.instruction.Instruction;
38 import org.jf.dexlib2.iface.instruction.formats.*;
53 public static ImmutableInstruction of(Instruction instruction) {
54 if (instruction instanceof ImmutableInstruction) {
55 return (ImmutableInstruction)instruction;
58 switch (instruction.getOpcode().format) {
60 return ImmutableInstruction10t.of((Instruction10t)instruction);
62 if (instruction instanceof UnknownInstruction) {
63 return ImmutableUnknownInstruction.of((UnknownInstruction)instruction);
65 return ImmutableInstruction10x.of((Instruction10x)instruction);
67 return ImmutableInstruction11n.of((Instruction11n)instruction);
69 return ImmutableInstruction11x.of((Instruction11x)instruction);
71 return ImmutableInstruction12x.of((Instruction12x)instruction);
73 return ImmutableInstruction20bc.of((Instruction20bc)instruction);
75 return ImmutableInstruction20t.of((Instruction20t)instruction);
77 return ImmutableInstruction21c.of((Instruction21c)instruction);
79 return ImmutableInstruction21ih.of((Instruction21ih)instruction);
81 return ImmutableInstruction21lh.of((Instruction21lh)instruction);
83 return ImmutableInstruction21s.of((Instruction21s)instruction);
85 return ImmutableInstruction21t.of((Instruction21t)instruction);
87 return ImmutableInstruction22b.of((Instruction22b)instruction);
89 return ImmutableInstruction22c.of((Instruction22c)instruction);
91 return ImmutableInstruction22cs.of((Instruction22cs)instruction);
93 return ImmutableInstruction22s.of((Instruction22s)instruction);
95 return ImmutableInstruction22t.of((Instruction22t)instruction);
97 return ImmutableInstruction22x.of((Instruction22x)instruction);
99 return ImmutableInstruction23x.of((Instruction23x)instruction);
101 return ImmutableInstruction30t.of((Instruction30t)instruction);
103 return ImmutableInstruction31c.of((Instruction31c)instruction);
105 return ImmutableInstruction31i.of((Instruction31i)instruction);
107 return ImmutableInstruction31t.of((Instruction31t)instruction);
109 return ImmutableInstruction32x.of((Instruction32x)instruction);
111 return ImmutableInstruction35c.of((Instruction35c)instruction);
113 return ImmutableInstruction35mi.of((Instruction35mi)instruction);
115 return ImmutableInstruction35ms.of((Instruction35ms)instruction);
117 return ImmutableInstruction3rc.of((Instruction3rc)instruction);
119 return ImmutableInstruction3rmi.of((Instruction3rmi)instruction);
121 return ImmutableInstruction3rms.of((Instruction3rms)instruction);
123 return ImmutableInstruction51l.of((Instruction51l)instruction);
125 return ImmutablePackedSwitchPayload.of((PackedSwitchPayload) instruction);
127 return ImmutableSparseSwitchPayload.of((SparseSwitchPayload) instruction);
129 return ImmutableArrayPayload.of((ArrayPayload) instruction);
131 throw new RuntimeException("Unexpected instruction type");