org.stringtemplate.v4.compiler
Class StringTable

java.lang.Object
  extended by org.stringtemplate.v4.compiler.StringTable

public class StringTable
extends Object

A unique set of strings where we can get a string's index. We can also get them back out in original order.


Field Summary
protected  int i
           
protected  LinkedHashMap<String,Integer> table
           
 
Constructor Summary
StringTable()
           
 
Method Summary
 int add(String s)
           
 String[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected LinkedHashMap<String,Integer> table

i

protected int i
Constructor Detail

StringTable

public StringTable()
Method Detail

add

public int add(String s)

toArray

public String[] toArray()


Copyright © 2011. All Rights Reserved.