Class TokenNode.EofNode

  • Enclosing class:
    TokenNode

    static final class TokenNode.EofNode
    extends TokenNode
    A synthetic node that represents the end of the input. This node is the last one in the initial token string and also the last one in the parse tree.
    • Constructor Detail

      • EofNode

        EofNode​(java.lang.String resourceName,
                int lineNumber)
    • Method Detail

      • name

        java.lang.String name()
        Description copied from class: TokenNode
        The name of the token, for use in parse error messages.
        Specified by:
        name in class TokenNode