1 18 19 package alt.jiapi.reflect; 20 21 import java.util.Iterator ; 22 import java.util.LinkedList ; 23 import java.util.List ; 24 25 import alt.jiapi.reflect.Instruction; 26 27 34 35 public class ExceptionTable { 40 private LinkedList entries = new LinkedList (); 41 42 48 public void addEntry(Instruction start, Instruction end, 49 Instruction handlerStart, String name) { 50 entries.add(new Entry(start, end, handlerStart, name)); 53 } 54 55 58 public List getEntries() { 59 return entries; 60 } 61 62 class Entry { 64 public Instruction start; 65 public Instruction end; 66 public Instruction handlerStart; 67 public String name; 68 69 Entry(Instruction start, Instruction end, 70 Instruction handlerStart, String name) { 71 this.start = start; 72 this.end = end; 73 this.handlerStart = handlerStart; 74 this.name = name; 75 } 76 } 77 } 78 | Popular Tags |