public class TokenTypeTracker
extends java.lang.Object
TODO: Develop a mechanism for adding trackers such as these in a more general fashion.
Constructor and Description |
---|
TokenTypeTracker() |
Modifier and Type | Method and Description |
---|---|
void |
add(Token t)
Adds a token to this tracker.
|
void |
dump()
Shows the accumulated statistics
|
public void add(Token t)
t
- the token to trackpublic void dump()