BasicBlock toBasicBlock() { InsnList result = new InsnList(instructions.size()); for (int i = 0; i < instructions.size(); i++) { result.set(i, instructions.get(i)); } result.setImmutable(); int primarySuccessorIndex = -1; IntList successors = new IntList(); for (Label catchLabel : catchLabels) { successors.add(catchLabel.id); } if (primarySuccessor != null) { primarySuccessorIndex = primarySuccessor.id; successors.add(primarySuccessorIndex); } if (alternateSuccessor != null) { successors.add(alternateSuccessor.id); } successors.setImmutable(); return new BasicBlock(id, result, successors, primarySuccessorIndex); } }
/** {@inheritDoc} */ @Override public void setImmutable() { values.setImmutable(); targets.setImmutable(); super.setImmutable(); }
/** {@inheritDoc} */ @Override public void setImmutable() { values.setImmutable(); targets.setImmutable(); super.setImmutable(); }
/** {@inheritDoc} */ @Override public void setImmutable() { values.setImmutable(); targets.setImmutable(); super.setImmutable(); }
/** {@inheritDoc} */ @Override public void setImmutable() { values.setImmutable(); targets.setImmutable(); super.setImmutable(); }
/** {@inheritDoc} */ @Override public void setImmutable() { values.setImmutable(); targets.setImmutable(); super.setImmutable(); }
/** {@inheritDoc} */ @Override public void setImmutable() { values.setImmutable(); targets.setImmutable(); super.setImmutable(); }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given element. * * @param value the sole value in the list */ public static IntList makeImmutable(int value) { IntList result = new IntList(1); result.add(value); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given elements. * * @param value0 the first value in the list * @param value1 the second value in the list */ public static IntList makeImmutable(int value0, int value1) { IntList result = new IntList(2); result.add(value0); result.add(value1); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given elements. * * @param value0 the first value in the list * @param value1 the second value in the list */ public static IntList makeImmutable(int value0, int value1) { IntList result = new IntList(2); result.add(value0); result.add(value1); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given elements. * * @param value0 the first value in the list * @param value1 the second value in the list */ public static IntList makeImmutable(int value0, int value1) { IntList result = new IntList(2); result.add(value0); result.add(value1); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given elements. * * @param value0 the first value in the list * @param value1 the second value in the list */ public static IntList makeImmutable(int value0, int value1) { IntList result = new IntList(2); result.add(value0); result.add(value1); result.setImmutable(); return result; }
/** * Constructs a new immutable instance with the given elements. * * @param value0 the first value in the list * @param value1 the second value in the list */ public static IntList makeImmutable(int value0, int value1) { IntList result = new IntList(2); result.add(value0); result.add(value1); result.setImmutable(); return result; }