Class ANTLRTokenWrapper

  • All Implemented Interfaces:
    IToken

    public class ANTLRTokenWrapper
    extends Object
    implements IToken
    The Class ANTLRTokenWrapper.
    • Constructor Detail

      • ANTLRTokenWrapper

        public ANTLRTokenWrapper​(org.antlr.runtime.Token t,
                                 ITokenMapper myMapper)
        Instantiates a new aNTLR token wrapper.
        Parameters:
        t - the t
        myMapper - the my mapper
    • Method Detail

      • isEOF

        public boolean isEOF()
        Checks if is eof.
        Specified by:
        isEOF in interface IToken
        Returns:
        true, if is eof
        See Also:
        IToken.isEOF()
      • isOther

        public boolean isOther()
        Checks if is other.
        Specified by:
        isOther in interface IToken
        Returns:
        true, if is other
        See Also:
        IToken.isOther()
      • setIsWhitespace

        public void setIsWhitespace​(boolean isWhitespace)
        Sets the checks if is whitespace.
        Parameters:
        isWhitespace - the new checks if is whitespace
      • getToken

        public org.antlr.runtime.Token getToken()
        Gets the token.
        Returns:
        the token