antlr.ASdebug
Interface IASDebugStream

All Known Implementing Classes:
TokenStreamBasicFilter, TokenStreamRewriteEngine, TokenStreamSelector

public interface IASDebugStream

Provides information used by the 'Input Text' view of Antlr Studio.

Author:
Prashant Deva

Method Summary
 String getEntireText()
          Returns the entire text input to the lexer.
 TokenOffsetInfo getOffsetInfo(Token token)
          Returns the offset information for the token
 

Method Detail

getEntireText

public String getEntireText()
Returns the entire text input to the lexer.

Returns:
The entire text or null, if error occured or System.in was used.

getOffsetInfo

public TokenOffsetInfo getOffsetInfo(Token token)
Returns the offset information for the token

Parameters:
token - the token whose information need to be retrieved
Returns:
offset info, or null