Class TokenNode.CommentTokenNode

  • Enclosing class:
    TokenNode

    static class TokenNode.CommentTokenNode
    extends TokenNode
    A node in the parse tree representing a comment. Comments are introduced by ## and extend to the end of the line. The only reason for recording comment nodes is so that we can skip space between a comment and a following #set, to be compatible with Velocity behaviour.
    • Constructor Detail

      • CommentTokenNode

        CommentTokenNode​(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