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 Details

    • CommentTokenNode

      CommentTokenNode(String resourceName, int lineNumber)
  • Method Details

    • name

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