com.greenpepper.shaded.antlr.ASdebug.ASDebugStream Maven / Gradle / Ivy
package antlr.ASdebug;
import antlr.Token;
import antlr.TokenStream;
/**
* Default implementation of IASDebugStream
methods.
* @author Prashant Deva
*/
public final class ASDebugStream
{
public static String getEntireText(TokenStream stream)
{
if (stream instanceof IASDebugStream)
{
IASDebugStream dbgStream = (IASDebugStream) stream;
return dbgStream.getEntireText();
}
return null;
}
public static TokenOffsetInfo getOffsetInfo(TokenStream stream, Token token)
{
if (stream instanceof IASDebugStream)
{
IASDebugStream dbgStream = (IASDebugStream) stream;
return dbgStream.getOffsetInfo(token);
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy