01: /* LabeledNOP */
02:
03: package org.quilt.bytecode;
04:
05: import org.apache.bcel.generic.*;
06:
07: /**
08: * An extension of the NOP which provides a label. To ease debugging.
09: */
10:
11: public class LabeledNOP extends NOP {
12: private String label = null;
13:
14: public LabeledNOP(String pos) {
15: label = pos;
16: }
17:
18: public String toString(boolean verbose) {
19: if (verbose) {
20: return super .toString(true) + "\t{" + label + "}";
21: } else {
22: return super .toString(false);
23: }
24: }
25: }
|