本文整理汇总了Java中org.jf.dexlib2.iface.instruction.formats.Instruction31c类的典型用法代码示例。如果您正苦于以下问题:Java Instruction31c类的具体用法?Java Instruction31c怎么用?Java Instruction31c使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Instruction31c类属于org.jf.dexlib2.iface.instruction.formats包,在下文中一共展示了Instruction31c类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: rewrite
import org.jf.dexlib2.iface.instruction.formats.Instruction31c; //导入依赖的package包/类
@Nonnull
@Override
public Instruction rewrite(@Nonnull Instruction instruction) {
if (instruction instanceof ReferenceInstruction) {
switch (instruction.getOpcode().format) {
case Format20bc:
return new RewrittenInstruction20bc((Instruction20bc) instruction);
case Format21c:
return new RewrittenInstruction21c((Instruction21c) instruction);
case Format22c:
return new RewrittenInstruction22c((Instruction22c) instruction);
case Format31c:
return new RewrittenInstruction31c((Instruction31c) instruction);
case Format35c:
return new RewrittenInstruction35c((Instruction35c) instruction);
case Format3rc:
return new RewrittenInstruction3rc((Instruction3rc) instruction);
default:
throw new IllegalArgumentException();
}
}
return instruction;
}
示例2: newBuilderInstruction31c
import org.jf.dexlib2.iface.instruction.formats.Instruction31c; //导入依赖的package包/类
@Nonnull
private BuilderInstruction31c newBuilderInstruction31c(@Nonnull Instruction31c instruction) {
return new BuilderInstruction31c(
instruction.getOpcode(),
instruction.getRegisterA(),
convertReference(instruction.getReference()));
}
示例3: of
import org.jf.dexlib2.iface.instruction.formats.Instruction31c; //导入依赖的package包/类
public static ImmutableInstruction31c of(Instruction31c instruction) {
if (instruction instanceof ImmutableInstruction31c) {
return (ImmutableInstruction31c)instruction;
}
return new ImmutableInstruction31c(
instruction.getOpcode(),
instruction.getRegisterA(),
instruction.getReference());
}
示例4: of
import org.jf.dexlib2.iface.instruction.formats.Instruction31c; //导入依赖的package包/类
public static ImmutableInstruction31c of(Instruction31c instruction) {
if (instruction instanceof ImmutableInstruction31c) {
return (ImmutableInstruction31c) instruction;
}
return new ImmutableInstruction31c(
instruction.getOpcode(),
instruction.getRegisterA(),
instruction.getReference());
}
示例5: write
import org.jf.dexlib2.iface.instruction.formats.Instruction31c; //导入依赖的package包/类
public void write(@Nonnull Instruction31c instruction) {
try {
writer.write(instruction.getOpcode().value);
writer.write(instruction.getRegisterA());
writer.writeInt(getReferenceIndex(instruction));
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}
示例6: newBuilderInstruction31c
import org.jf.dexlib2.iface.instruction.formats.Instruction31c; //导入依赖的package包/类
@Nonnull
private BuilderInstruction31c newBuilderInstruction31c(@Nonnull Instruction31c instruction) {
return new BuilderInstruction31c(
instruction.getOpcode(),
instruction.getRegisterA(),
instruction.getReference());
}
示例7: RewrittenInstruction31c
import org.jf.dexlib2.iface.instruction.formats.Instruction31c; //导入依赖的package包/类
public RewrittenInstruction31c(@Nonnull Instruction31c instruction) {
super(instruction);
}