Class Comment

All Implemented Interfaces:
Node, TextNode

public class Comment extends BasicNode implements TextNode
  • Field Details

  • Constructor Details

    • Comment

      public Comment(Token token)
    • Comment

      public Comment(String text)
  • Method Details

    • setText

      public Comment setText(String text)
      Description copied from interface: TextNode
      Change the text of the node. When necessary, the text will be escaped before writing it to the output stream.
      Specified by:
      setText in interface TextNode
    • getText

      public String getText()
      Description copied from interface: TextNode
      Get the text from the node
      Specified by:
      getText in interface TextNode
    • createClone

      public Comment createClone()
      Description copied from interface: Node
      Simulate clone()
      Specified by:
      createClone in interface Node
      Overrides:
      createClone in class BasicNode
    • copy

      public Comment copy()
      Description copied from interface: Node
      Simulate clone()
      Specified by:
      copy in interface Node
      Overrides:
      copy in class BasicNode