1 15 16 package javassist.compiler; 17 18 final class KeywordTable extends java.util.HashMap { 19 public KeywordTable() { super(); } 20 21 public int lookup(String name) { 22 Object found = get(name); 23 if (found == null) 24 return -1; 25 else 26 return ((Integer )found).intValue(); 27 } 28 29 public void append(String name, int t) { 30 put(name, new Integer (t)); 31 } 32 } 33 | Popular Tags |