com.android.dx.rop.code.BasicBlockList.getOrNull0()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中com.android.dx.rop.code.BasicBlockList.getOrNull0()方法的一些代码示例,展示了BasicBlockList.getOrNull0()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BasicBlockList.getOrNull0()方法的具体详情如下:
包路径:com.android.dx.rop.code.BasicBlockList
类名称:BasicBlockList
方法名:getOrNull0

BasicBlockList.getOrNull0介绍

暂无

代码示例

代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Gets the total instruction count for this instance. This is the
 * sum of the instruction counts of each block.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      result += one.getInsns().size();
    }
  }
  return result;
}

代码示例来源:origin: com.google.android.tools/dx

/**
 * Gets the total instruction count for this instance. This is the
 * sum of the instruction counts of each block.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      result += one.getInsns().size();
    }
  }
  return result;
}

代码示例来源:origin: nikita36078/J2ME-Loader

/**
 * Gets the total instruction count for this instance. This is the
 * sum of the instruction counts of each block.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      result += one.getInsns().size();
    }
  }
  return result;
}

代码示例来源:origin: com.android.tools.build/builder

/**
 * Gets the total instruction count for this instance. This is the
 * sum of the instruction counts of each block.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      result += one.getInsns().size();
    }
  }
  return result;
}

代码示例来源:origin: com.google.dexmaker/dexmaker-dx

/**
 * Gets the total instruction count for this instance. This is the
 * sum of the instruction counts of each block.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      result += one.getInsns().size();
    }
  }
  return result;
}

代码示例来源:origin: gdpancheng/LoonAndroid3

/**
 * Gets the total instruction count for this instance. This is the
 * sum of the instruction counts of each block.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      result += one.getInsns().size();
    }
  }
  return result;
}

代码示例来源:origin: dragome/dragome-sdk

/**
 * Gets the total instruction count for this instance. This is the
 * sum of the instruction counts of each block.
 * 
 * @return {@code >= 0;} the total instruction count
 */
public int getInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      result += one.getInsns().size();
    }
  }
  return result;
}

代码示例来源:origin: com.android/dx

/**
 * Gets the total instruction count for this instance. This is the
 * sum of the instruction counts of each block.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      result += one.getInsns().size();
    }
  }
  return result;
}

代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Gets the total instruction count for this instance, ignoring
 * mark-local instructions which are not actually emitted.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getEffectiveInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      InsnList insns = one.getInsns();
      int insnsSz = insns.size();
      for (int j = 0; j < insnsSz; j++) {
        Insn insn = insns.get(j);
        if (insn.getOpcode().getOpcode() != RegOps.MARK_LOCAL) {
          result++;
        }
      }
    }
  }
  return result;
}

代码示例来源:origin: com.google.dexmaker/dexmaker-dx

/**
 * Gets the total instruction count for this instance, ignoring
 * mark-local instructions which are not actually emitted.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getEffectiveInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      InsnList insns = one.getInsns();
      int insnsSz = insns.size();
      for (int j = 0; j < insnsSz; j++) {
        Insn insn = insns.get(j);
        if (insn.getOpcode().getOpcode() != RegOps.MARK_LOCAL) {
          result++;
        }
      }
    }
  }
  return result;
}

代码示例来源:origin: com.android.tools.build/builder

/**
 * Gets the total instruction count for this instance, ignoring
 * mark-local instructions which are not actually emitted.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getEffectiveInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      InsnList insns = one.getInsns();
      int insnsSz = insns.size();
      for (int j = 0; j < insnsSz; j++) {
        Insn insn = insns.get(j);
        if (insn.getOpcode().getOpcode() != RegOps.MARK_LOCAL) {
          result++;
        }
      }
    }
  }
  return result;
}

代码示例来源:origin: nikita36078/J2ME-Loader

/**
 * Gets the total instruction count for this instance, ignoring
 * mark-local instructions which are not actually emitted.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getEffectiveInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      InsnList insns = one.getInsns();
      int insnsSz = insns.size();
      for (int j = 0; j < insnsSz; j++) {
        Insn insn = insns.get(j);
        if (insn.getOpcode().getOpcode() != RegOps.MARK_LOCAL) {
          result++;
        }
      }
    }
  }
  return result;
}

代码示例来源:origin: dragome/dragome-sdk

/**
 * Gets the total instruction count for this instance, ignoring
 * mark-local instructions which are not actually emitted.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getEffectiveInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      InsnList insns = one.getInsns();
      int insnsSz = insns.size();
      for (int j = 0; j < insnsSz; j++) {
        Insn insn = insns.get(j);
        if (insn.getOpcode().getOpcode() != RegOps.MARK_LOCAL) {
          result++;
        }
      }
    }
  }
  return result;
}

代码示例来源:origin: com.google.android.tools/dx

/**
 * Gets the total instruction count for this instance, ignoring
 * mark-local instructions which are not actually emitted.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getEffectiveInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      InsnList insns = one.getInsns();
      int insnsSz = insns.size();
      for (int j = 0; j < insnsSz; j++) {
        Insn insn = insns.get(j);
        if (insn.getOpcode().getOpcode() != RegOps.MARK_LOCAL) {
          result++;
        }
      }
    }
  }
  return result;
}

代码示例来源:origin: com.android/dx

/**
 * Gets the total instruction count for this instance, ignoring
 * mark-local instructions which are not actually emitted.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getEffectiveInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      InsnList insns = one.getInsns();
      int insnsSz = insns.size();
      for (int j = 0; j < insnsSz; j++) {
        Insn insn = insns.get(j);
        if (insn.getOpcode().getOpcode() != RegOps.MARK_LOCAL) {
          result++;
        }
      }
    }
  }
  return result;
}

代码示例来源:origin: gdpancheng/LoonAndroid3

/**
 * Gets the total instruction count for this instance, ignoring
 * mark-local instructions which are not actually emitted.
 *
 * @return {@code >= 0;} the total instruction count
 */
public int getEffectiveInstructionCount() {
  int sz = size();
  int result = 0;
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) getOrNull0(i);
    if (one != null) {
      InsnList insns = one.getInsns();
      int insnsSz = insns.size();
      for (int j = 0; j < insnsSz; j++) {
        Insn insn = insns.get(j);
        if (insn.getOpcode().getOpcode() != RegOps.MARK_LOCAL) {
          result++;
        }
      }
    }
  }
  return result;
}

相关文章