69
70 /**
71 * Check whether this can be broken out from without using a label,
72 * e.g. everything but Blocks, basically
73 * @return true if breakable without label
74 */
75 protected boolean isBreakableWithoutLabel() {
76 return true;
77 }
78
79 /**
80 * Return the break label, i.e. the location to go to on break.
81 * @return the break label
82 */
83 public Label getBreakLabel() {
84 return breakLabel;
85 }
86
87 /**
88 * Return the labels associated with this node. Breakable nodes that
89 * aren't LoopNodes only have a break label -> the location immediately
90 * afterwards the node in code
91 * @return list of labels representing locations around this node
92 */
93 public List<Label> getLabels() {
94 return Arrays.asList(breakLabel);
95 }
96
97 }
|
69
70 /**
71 * Check whether this can be broken out from without using a label,
72 * e.g. everything but Blocks, basically
73 * @return true if breakable without label
74 */
75 protected boolean isBreakableWithoutLabel() {
76 return true;
77 }
78
79 /**
80 * Return the break label, i.e. the location to go to on break.
81 * @return the break label
82 */
83 public Label getBreakLabel() {
84 return breakLabel;
85 }
86
87 /**
88 * Return the labels associated with this node. Breakable nodes that
89 * aren't LoopNodes only have a break label - the location immediately
90 * afterwards the node in code
91 * @return list of labels representing locations around this node
92 */
93 public List<Label> getLabels() {
94 return Arrays.asList(breakLabel);
95 }
96
97 }
|