本文整理汇总了Java中org.jf.dexlib2.iface.instruction.formats.Instruction20bc类的典型用法代码示例。如果您正苦于以下问题:Java Instruction20bc类的具体用法?Java Instruction20bc怎么用?Java Instruction20bc使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Instruction20bc类属于org.jf.dexlib2.iface.instruction.formats包,在下文中一共展示了Instruction20bc类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: rewrite
import org.jf.dexlib2.iface.instruction.formats.Instruction20bc; //导入依赖的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: newBuilderInstruction20bc
import org.jf.dexlib2.iface.instruction.formats.Instruction20bc; //导入依赖的package包/类
@Nonnull
private BuilderInstruction20bc newBuilderInstruction20bc(@Nonnull Instruction20bc instruction) {
return new BuilderInstruction20bc(
instruction.getOpcode(),
instruction.getVerificationError(),
convertReference(instruction.getReference()));
}
示例3: of
import org.jf.dexlib2.iface.instruction.formats.Instruction20bc; //导入依赖的package包/类
public static ImmutableInstruction20bc of(Instruction20bc instruction) {
if (instruction instanceof ImmutableInstruction20bc) {
return (ImmutableInstruction20bc)instruction;
}
return new ImmutableInstruction20bc(
instruction.getOpcode(),
instruction.getVerificationError(),
instruction.getReference());
}
示例4: of
import org.jf.dexlib2.iface.instruction.formats.Instruction20bc; //导入依赖的package包/类
public static ImmutableInstruction20bc of(Instruction20bc instruction) {
if (instruction instanceof ImmutableInstruction20bc) {
return (ImmutableInstruction20bc) instruction;
}
return new ImmutableInstruction20bc(
instruction.getOpcode(),
instruction.getVerificationError(),
instruction.getReference());
}
示例5: write
import org.jf.dexlib2.iface.instruction.formats.Instruction20bc; //导入依赖的package包/类
public void write(@Nonnull Instruction20bc instruction) {
try {
writer.write(instruction.getOpcode().value);
writer.write(instruction.getVerificationError());
writer.writeUshort(getReferenceIndex(instruction));
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}
示例6: newBuilderInstruction20bc
import org.jf.dexlib2.iface.instruction.formats.Instruction20bc; //导入依赖的package包/类
@Nonnull
private BuilderInstruction20bc newBuilderInstruction20bc(@Nonnull Instruction20bc instruction) {
return new BuilderInstruction20bc(
instruction.getOpcode(),
instruction.getVerificationError(),
instruction.getReference());
}
示例7: RewrittenInstruction20bc
import org.jf.dexlib2.iface.instruction.formats.Instruction20bc; //导入依赖的package包/类
public RewrittenInstruction20bc(@Nonnull Instruction20bc instruction) {
super(instruction);
}