1 package persistence.antlr; 2 3 8 9 import java.util.Hashtable ; 10 import java.util.Enumeration ; 11 12 import persistence.antlr.collections.impl.Vector; 13 14 15 interface TokenManager { 16 public Object clone(); 17 18 19 public void define(TokenSymbol ts); 20 21 22 public String getName(); 23 24 25 public String getTokenStringAt(int idx); 26 27 28 public TokenSymbol getTokenSymbol(String sym); 29 30 public TokenSymbol getTokenSymbolAt(int idx); 31 32 33 public Enumeration getTokenSymbolElements(); 34 35 public Enumeration getTokenSymbolKeys(); 36 37 39 public Vector getVocabulary(); 40 41 42 public boolean isReadOnly(); 43 44 public void mapToTokenSymbol(String name, TokenSymbol sym); 45 46 47 public int maxTokenType(); 48 49 50 public int nextTokenType(); 51 52 public void setName(String n); 53 54 public void setReadOnly(boolean ro); 55 56 57 public boolean tokenDefined(String symbol); 58 } 59 | Popular Tags |