slogo.parser.token
Class CharTokenFactory

java.lang.Object
  extended by slogo.parser.token.CharTokenFactory

public class CharTokenFactory
extends java.lang.Object

Factory for generating CharToken objects ensuring that only one of any specific CharToken object is created (enforcing CharToken singleton-ness per char value)

Author:
Owen Astrachan

Field Summary
private static CharToken[] tokenList
           
 
Constructor Summary
CharTokenFactory()
           
 
Method Summary
static CharToken getToken(int ch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenList

private static CharToken[] tokenList
Constructor Detail

CharTokenFactory

public CharTokenFactory()
Method Detail

getToken

public static CharToken getToken(int ch)