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

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

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

BasicBlockList.<init>介绍

[英]Constructs an instance. All indices initially contain null, and the first-block label is initially -1.
[中]构造一个实例。所有索引最初都包含null,第一个块标签最初为-1。

代码示例

代码示例来源:origin: linkedin/dexmaker

BasicBlockList toBasicBlocks() {
  if (!localsInitialized) {
    initializeLocals();
  }
  cleanUpLabels();
  BasicBlockList result = new BasicBlockList(labels.size());
  for (int i = 0; i < labels.size(); i++) {
    result.set(i, labels.get(i).toBasicBlock());
  }
  return result;
}

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

/**
 * Returns a mutable copy of this list.
 *
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList getMutableCopy() {
  return new BasicBlockList(this);
}

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

/**
 * Returns a mutable copy of this list.
 *
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList getMutableCopy() {
  return new BasicBlockList(this);
}

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

/**
 * Returns a mutable copy of this list.
 *
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList getMutableCopy() {
  return new BasicBlockList(this);
}

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

/**
 * Returns a mutable copy of this list.
 *
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList getMutableCopy() {
  return new BasicBlockList(this);
}

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

/**
 * Returns a mutable copy of this list.
 *
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList getMutableCopy() {
  return new BasicBlockList(this);
}

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

/**
 * Returns a mutable copy of this list.
 *
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList getMutableCopy() {
  return new BasicBlockList(this);
}

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

/**
 * Returns a mutable copy of this list.
 *
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList getMutableCopy() {
  return new BasicBlockList(this);
}

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

/**
 * Returns a mutable copy of this list.
 *
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList getMutableCopy() {
  return new BasicBlockList(this);
}

代码示例来源:origin: com.linkedin.dexmaker/dexmaker

BasicBlockList toBasicBlocks() {
  if (!localsInitialized) {
    initializeLocals();
  }
  cleanUpLabels();
  BasicBlockList result = new BasicBlockList(labels.size());
  for (int i = 0; i < labels.size(); i++) {
    result.set(i, labels.get(i).toBasicBlock());
  }
  return result;
}

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

BasicBlockList toBasicBlocks() {
  if (!localsInitialized) {
    initializeLocals();
  }
  cleanUpLabels();
  BasicBlockList result = new BasicBlockList(labels.size());
  for (int i = 0; i < labels.size(); i++) {
    result.set(i, labels.get(i).toBasicBlock());
  }
  return result;
}

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

BasicBlockList toBasicBlocks() {
  if (!localsInitialized) {
    initializeLocals();
  }
  cleanUpLabels();
  BasicBlockList result = new BasicBlockList(labels.size());
  for (int i = 0; i < labels.size(); i++) {
    result.set(i, labels.get(i).toBasicBlock());
  }
  return result;
}

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

/**
 * Extracts the resulting {@link RopMethod} from the instance.
 *
 * @return {@code non-null;} the method object
 */
private RopMethod getRopMethod() {
  // Construct the final list of blocks.
  int sz = result.size();
  BasicBlockList bbl = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    bbl.set(i, result.get(i));
  }
  bbl.setImmutable();
  // Construct the method object to wrap it all up.
  /*
   * Note: The parameter assignment block is always the first
   * that should be executed, hence the second argument to the
   * constructor.
   */
  return new RopMethod(bbl, getSpecialLabel(PARAM_ASSIGNMENT));
}

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

/**
 * Extracts the resulting {@link RopMethod} from the instance.
 *
 * @return {@code non-null;} the method object
 */
private RopMethod getRopMethod() {
  // Construct the final list of blocks.
  int sz = result.size();
  BasicBlockList bbl = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    bbl.set(i, result.get(i));
  }
  bbl.setImmutable();
  // Construct the method object to wrap it all up.
  /*
   * Note: The parameter assignment block is always the first
   * that should be executed, hence the second argument to the
   * constructor.
   */
  return new RopMethod(bbl, getSpecialLabel(PARAM_ASSIGNMENT));
}

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

/**
 * Extracts the resulting {@link RopMethod} from the instance.
 *
 * @return {@code non-null;} the method object
 */
private RopMethod getRopMethod() {
  // Construct the final list of blocks.
  int sz = result.size();
  BasicBlockList bbl = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    bbl.set(i, result.get(i));
  }
  bbl.setImmutable();
  // Construct the method object to wrap it all up.
  /*
   * Note: The parameter assignment block is always the first
   * that should be executed, hence the second argument to the
   * constructor.
   */
  return new RopMethod(bbl, getSpecialLabel(PARAM_ASSIGNMENT));
}

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

/**
 * Extracts the resulting {@link RopMethod} from the instance.
 *
 * @return {@code non-null;} the method object
 */
private RopMethod getRopMethod() {
  // Construct the final list of blocks.
  int sz = result.size();
  BasicBlockList bbl = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    bbl.set(i, result.get(i));
  }
  bbl.setImmutable();
  // Construct the method object to wrap it all up.
  /*
   * Note: The parameter assignment block is always the first
   * that should be executed, hence the second argument to the
   * constructor.
   */
  return new RopMethod(bbl, getSpecialLabel(PARAM_ASSIGNMENT));
}

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

/**
 * Extracts the resulting {@link RopMethod} from the instance.
 * 
 * @return {@code non-null;} the method object
 */
private RopMethod getRopMethod() {
  // Construct the final list of blocks.
  int sz = result.size();
  BasicBlockList bbl = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    bbl.set(i, result.get(i));
  }
  bbl.setImmutable();
  // Construct the method object to wrap it all up.
  /*
   * Note: The parameter assignment block is always the first
   * that should be executed, hence the second argument to the
   * constructor.
   */
  return new RopMethod(bbl, getSpecialLabel(PARAM_ASSIGNMENT));
}

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

/**
 * Extracts the resulting {@link RopMethod} from the instance.
 *
 * @return {@code non-null;} the method object
 */
private RopMethod getRopMethod() {
  // Construct the final list of blocks.
  int sz = result.size();
  BasicBlockList bbl = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    bbl.set(i, result.get(i));
  }
  bbl.setImmutable();
  // Construct the method object to wrap it all up.
  /*
   * Note: The parameter assignment block is always the first
   * that should be executed, hence the second argument to the
   * constructor.
   */
  return new RopMethod(bbl, getSpecialLabel(PARAM_ASSIGNMENT));
}

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

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount. Mutability of the result is inherited from the
 * original.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  return result;
}

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

/**
 * Returns an instance that is identical to this one, except that
 * the registers in each instruction are offset by the given
 * amount. Mutability of the result is inherited from the
 * original.
 *
 * @param delta the amount to offset register numbers by
 * @return {@code non-null;} an appropriately-constructed instance
 */
public BasicBlockList withRegisterOffset(int delta) {
  int sz = size();
  BasicBlockList result = new BasicBlockList(sz);
  for (int i = 0; i < sz; i++) {
    BasicBlock one = (BasicBlock) get0(i);
    if (one != null) {
      result.set(i, one.withRegisterOffset(delta));
    }
  }
  if (isImmutable()) {
    result.setImmutable();
  }
  return result;
}

相关文章