当前位置: 首页>>代码示例>>Java>>正文


Java Instruction31c类代码示例

本文整理汇总了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;
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:24,代码来源:InstructionRewriter.java

示例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()));
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:BuilderMutableMethodImplementation.java

示例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());
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableInstruction31c.java

示例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());
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:10,代码来源:ImmutableInstruction31c.java

示例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);
    }
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:10,代码来源:InstructionWriter.java

示例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());
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:8,代码来源:MutableMethodImplementation.java

示例7: RewrittenInstruction31c

import org.jf.dexlib2.iface.instruction.formats.Instruction31c; //导入依赖的package包/类
public RewrittenInstruction31c(@Nonnull Instruction31c instruction) {
    super(instruction);
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:4,代码来源:InstructionRewriter.java


注:本文中的org.jf.dexlib2.iface.instruction.formats.Instruction31c类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。