Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 46 package org.codehaus.groovy.classgen; 47 48 import org.objectweb.asm.Label; 49 50 56 public class BlockScope { 57 58 59 private Label breakLabel = null; private Label continueLabel = null; private BlockScope parent; 65 private int firstVariableIndex = 0; 66 67 public BlockScope(BlockScope parent) { 68 this.parent = parent; 69 } 70 71 public Label getContinueLabel() { 72 return continueLabel; 73 } 74 75 public void setContinueLabel(Label continueLabel) { 76 this.continueLabel = continueLabel; 77 } 78 79 public Label getBreakLabel() { 80 return breakLabel; 81 } 82 83 public void setBreakLabel(Label breakLabel) { 84 this.breakLabel = breakLabel; 85 } 86 87 public BlockScope getParent() { 88 return parent; 89 } 90 91 public int getFirstVariableIndex() { 92 return firstVariableIndex; 93 } 94 95 public void setFirstVariableIndex(int firstVariableIndex) { 96 this.firstVariableIndex = firstVariableIndex; 97 } 98 99 104 public void setLastVariableIndex(int firstVariableIndex) { 105 this.firstVariableIndex = firstVariableIndex; 106 } 107 108 public int getLastVariableIndex() { 109 return firstVariableIndex; 110 } 111 112 } 113
| Popular Tags
|