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


Java TargetInsn类代码示例

本文整理汇总了Java中com.android.dx.dex.code.TargetInsn的典型用法代码示例。如果您正苦于以下问题:Java TargetInsn类的具体用法?Java TargetInsn怎么用?Java TargetInsn使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TargetInsn类属于com.android.dx.dex.code包,在下文中一共展示了TargetInsn类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isCompatible

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean isCompatible(DalvInsn insn) {
    if (!((insn instanceof TargetInsn) &&
          (insn.getRegisters().size() == 0))) {
        return false;
    }

    TargetInsn ti = (TargetInsn) insn;
    return ti.hasTargetOffset() ? branchFits(ti) : true;
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:12,代码来源:Form20t.java

示例2: branchFits

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean branchFits(TargetInsn insn) {
    int offset = insn.getTargetOffset();

    // Note: A zero offset would fit, but it is prohibited by the spec.
    return (offset != 0) && signedFitsInShort(offset);
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:9,代码来源:Form20t.java

示例3: writeTo

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void writeTo(AnnotatedOutput out, DalvInsn insn) {
    int offset = ((TargetInsn) insn).getTargetOffset();

    write(out, opcodeUnit(insn, 0), (short) offset);
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:8,代码来源:Form20t.java

示例4: branchFits

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean branchFits(TargetInsn insn) {
    int offset = insn.getTargetOffset();

    // Note: A zero offset would fit, but it is prohibited by the spec.
    return (offset != 0) && signedFitsInByte(offset);
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:9,代码来源:Form10t.java

示例5: writeTo

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void writeTo(AnnotatedOutput out, DalvInsn insn) {
    int offset = ((TargetInsn) insn).getTargetOffset();

    write(out, opcodeUnit(insn, (offset & 0xff)));
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:8,代码来源:Form10t.java

示例6: isCompatible

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean isCompatible(DalvInsn insn) {
    RegisterSpecList regs = insn.getRegisters();

    if (!((insn instanceof TargetInsn) &&
          (regs.size() == 1) &&
          unsignedFitsInByte(regs.get(0).getReg()))) {
        return false;
    }

    return true;
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:14,代码来源:Form31t.java

示例7: writeTo

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void writeTo(AnnotatedOutput out, DalvInsn insn) {
    RegisterSpecList regs = insn.getRegisters();
    int offset = ((TargetInsn) insn).getTargetOffset();

    write(out, opcodeUnit(insn, regs.get(0).getReg()), offset);
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:9,代码来源:Form31t.java

示例8: isCompatible

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean isCompatible(DalvInsn insn) {
    if (!((insn instanceof TargetInsn) &&
          (insn.getRegisters().size() == 0))) {
        return false;
    }

    return true;
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:11,代码来源:Form30t.java

示例9: writeTo

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void writeTo(AnnotatedOutput out, DalvInsn insn) {
    int offset = ((TargetInsn) insn).getTargetOffset();

    write(out, opcodeUnit(insn, 0), offset);
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:8,代码来源:Form30t.java

示例10: isCompatible

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean isCompatible(DalvInsn insn) {
    RegisterSpecList regs = insn.getRegisters();

    if (!((insn instanceof TargetInsn) &&
          (regs.size() == 1) &&
          unsignedFitsInByte(regs.get(0).getReg()))) {
        return false;
    }

    TargetInsn ti = (TargetInsn) insn;
    return ti.hasTargetOffset() ? branchFits(ti) : true;
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:15,代码来源:Form21t.java

示例11: writeTo

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void writeTo(AnnotatedOutput out, DalvInsn insn) {
    RegisterSpecList regs = insn.getRegisters();
    int offset = ((TargetInsn) insn).getTargetOffset();

    write(out,
          opcodeUnit(insn, regs.get(0).getReg()),
          (short) offset);
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:11,代码来源:Form21t.java

示例12: isCompatible

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean isCompatible(DalvInsn insn) {
    RegisterSpecList regs = insn.getRegisters();

    if (!((insn instanceof TargetInsn) &&
          (regs.size() == 2) &&
          unsignedFitsInNibble(regs.get(0).getReg()) &&
          unsignedFitsInNibble(regs.get(1).getReg()))) {
        return false;
    }

    TargetInsn ti = (TargetInsn) insn;
    return ti.hasTargetOffset() ? branchFits(ti) : true;
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:16,代码来源:Form22t.java

示例13: writeTo

import com.android.dx.dex.code.TargetInsn; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void writeTo(AnnotatedOutput out, DalvInsn insn) {
    RegisterSpecList regs = insn.getRegisters();
    int offset = ((TargetInsn) insn).getTargetOffset();

    write(out,
          opcodeUnit(insn,
                     makeByte(regs.get(0).getReg(), regs.get(1).getReg())),
          (short) offset);
}
 
开发者ID:JLLK,项目名称:multidex-maker,代码行数:12,代码来源:Form22t.java


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