Package picasso.parser.tokens
Class CharTokenFactory
- java.lang.Object
-
- picasso.parser.tokens.CharTokenFactory
-
public class CharTokenFactory extends Object
Factory for generating CharToken objects ensuring that only one of any specific CharToken object is created (enforcing CharToken singleton-ness per char value)
-
-
Constructor Summary
Constructors Constructor Description CharTokenFactory()
-
-
-
Method Detail
-
getToken
public static CharToken getToken(int ch)
- Parameters:
ch
-- Returns:
- the token represented by this character
-
-