01: package antlr.ASdebug;
02:
03: import antlr.Token;
04:
05: /**
06: * Provides information used by the 'Input Text' view
07: * of Antlr Studio.
08: * @author Prashant Deva
09: */
10: public interface IASDebugStream {
11: /**
12: * Returns the entire text input to the lexer.
13: * @return The entire text or <code>null</code>, if error occured or System.in was used.
14: */
15: String getEntireText();
16:
17: /**
18: * Returns the offset information for the token
19: * @param token the token whose information need to be retrieved
20: * @return offset info, or <code>null</code>
21: */
22: TokenOffsetInfo getOffsetInfo(Token token);
23: }
|