antlr.ASdebug

Interface IASDebugStream

public interface IASDebugStream

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

Author: Prashant Deva

Method Summary
StringgetEntireText()
Returns the entire text input to the lexer.
TokenOffsetInfogetOffsetInfo(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