All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.shaded.antlr.ASdebug.ASDebugStream Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
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