public void visitTableSwitchInsn(int min, int max, Label dflt, Label labels[]) { mv1.visitTableSwitchInsn(min, max, dflt, labels); mv2.visitTableSwitchInsn(min, max, dflt, labels); }
public void visitTableSwitchInsn(int min, int max, Label dflt, Label labels[]) { mv1.visitTableSwitchInsn(min, max, dflt, labels); mv2.visitTableSwitchInsn(min, max, dflt, labels); }
/** * Visits a TABLESWITCH instruction. * * @param min the minimum key value. * @param max the maximum key value. * @param dflt beginning of the default handler block. * @param labels beginnings of the handler blocks. {@code labels[i]} is the beginning of the * handler block for the {@code min + i} key. */ public void visitTableSwitchInsn( final int min, final int max, final Label dflt, final Label... labels) { if (mv != null) { mv.visitTableSwitchInsn(min, max, dflt, labels); } }
mv.visitTableSwitchInsn(0, callbacks.size() - 1, def, labels);
@Override public void caseTableSwitchInst(TableSwitchInst i) { List<Unit> targets = i.getTargets(); Label[] labels = new Label[targets.size()]; for (int j = 0; j < targets.size(); j++) { labels[j] = branchTargetLabels.get(targets.get(j)); } mv.visitTableSwitchInsn(i.getLowIndex(), i.getHighIndex(), branchTargetLabels.get(i.getDefaultTarget()), labels); }
labels[i] = new Label(); mv.visitTableSwitchInsn(0, callbacks.size() - 1, def, labels);
mv.visitTableSwitchInsn(0, labels.length - 1, defaultLabel, labels);
mv.visitTableSwitchInsn(0, labels.length - 1, defaultLabel, labels);
methodVisitor.visitTableSwitchInsn(low, high, endOfSwitch, cases);
targets[i] = (Label) tss.targets[i].tag; asm.visitTableSwitchInsn(tss.lowIndex, tss.lowIndex + targets.length - 1, (Label) tss.defaultTarget.tag, targets);
@Override public void visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) { super.visitTableSwitchInsn(min, max, dflt, labels); skipNextFrame = false; }
mv.visitTableSwitchInsn(min, max, defLabel, labels); break;
labels[keys[i] - min] = make_label(); mv.visitTableSwitchInsn(min, max, def, labels); for (int i = 0; i < range; i++) { Label label = labels[i];
labels[keys[i] - min] = make_label(); mv.visitTableSwitchInsn(min, max, def, labels); for (int i = 0; i < range; i++) { Label label = labels[i];
currentOffset += 4; methodVisitor.visitTableSwitchInsn(low, high, defaultLabel, table); break;
@Test public void shouldForwardVisitTableSwitchInsnToChild() { final Label l = new Label(); final Label[] l2 = { new Label() }; getTesteeVisitor().visitTableSwitchInsn(1, 2, l, l2); verify(this.mv).visitTableSwitchInsn(1, 2, l, l2); }
@Override public void visitTableSwitchInsn( final int min, final int max, final Label dflt, final Label... labels) { minSize += 13 + labels.length * 4; maxSize += 16 + labels.length * 4; super.visitTableSwitchInsn(min, max, dflt, labels); }
@Override public void visitTableSwitchInsn( final int min, final int max, final Label dflt, final Label... labels) { super.visitTableSwitchInsn(min, max, dflt, labels); execute(Opcodes.TABLESWITCH, 0, null); this.locals = null; this.stack = null; }
@Override public void accept(final MethodVisitor methodVisitor) { Label[] labelsArray = new Label[this.labels.size()]; for (int i = 0, n = labelsArray.length; i < n; ++i) { labelsArray[i] = this.labels.get(i).getLabel(); } methodVisitor.visitTableSwitchInsn(min, max, dflt.getLabel(), labelsArray); acceptAnnotations(methodVisitor); }
@Override public void visitTableSwitchInsn(int arg0, int arg1, Label arg2, Label[] arg3) { super.visitTableSwitchInsn(arg0, arg1, arg2, arg3); LabelNode nodes[] = new LabelNode[arg3.length]; for (int i = 0; i < arg3.length; i++) { nodes[i] = new LabelNode(arg3[i]); } appendToBacklog(new TableSwitchInsnNode(arg0, arg1, new LabelNode(arg2), nodes)); }