org.stringtemplate.v4.compiler
Class StringTable

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

public class StringTable
extends java.lang.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  java.util.LinkedHashMap<java.lang.String,java.lang.Integer> table
           
 
Constructor Summary
StringTable()
           
 
Method Summary
 int add(java.lang.String s)
           
 java.lang.String[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected java.util.LinkedHashMap<java.lang.String,java.lang.Integer> table

i

protected int i
Constructor Detail

StringTable

public StringTable()
Method Detail

add

public int add(java.lang.String s)

toArray

public java.lang.String[] toArray()


Copyright © 2011. All Rights Reserved.