- /** this is declared abstract as a way of forcing subclasses to provide a thoughtful implementation */
- public abstract String toString();
-
- /** a sequence of input tokens; returns null when EOF is reached */
- public static interface Stream<Tok> {
- public Tok next(int numstates, int resets, int waits) throws IOException;
- public abstract Location getLocation();
- }
+ public Tok next(int numstates, int resets, int waits) throws IOException;
+ public abstract Location getLocation();