antlr.ASdebug

Interface IASDebugStream

Known Implementing Classes:
TokenStreamBasicFilter, TokenStreamHiddenTokenFilter, 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 Details

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