Class CommentNode

  • All Implemented Interfaces:
    ITslNode

    public class CommentNode
    extends Object
    implements ITslNode
    TSL node representing a comment.
    Since:
    6.4
    Author:
    O. Kerpershoek
    • Constructor Detail

      • CommentNode

        public CommentNode​(String text)
        Constructs the node with the comment text.
        Parameters:
        text - The comment text of the node.
    • Method Detail

      • getText

        public String getText()
        This method returns the comment text of the node.
        Returns:
        the comment text of the node.
      • expand

        public void expand​(IValueSource source,
                           OutputBuffer output,
                           ILanguage language)
        Description copied from interface: ITslNode
        The expand method should evaluate the node for the given language, and append the result to the output buffer supplied. When the node also contains child elements, this expand method should invoke the child elements too.
        Specified by:
        expand in interface ITslNode
        Parameters:
        source - Object containing the values for the current domain.
        output - The output buffer the result of this node should be appended to.
        language - The language for which the node should be evaluated.
      • visit

        public void visit​(ITslNodeVisitor visitor)
        Description copied from interface: ITslNode
        This method allows visitation of the node. The visit method will not invoke the visitor for any child nodes.
        Specified by:
        visit in interface ITslNode
        Parameters:
        visitor - The visitor that should be invoked for this node.