public class

Comment

extends Node
java.lang.Object
   ↳ org.jsoup.nodes.Node
     ↳ org.jsoup.nodes.Comment

Class Overview

A comment node.

Summary

Public Constructors
Comment(String data, String baseUri)
Create a new comment node.
Public Methods
String getData()
Get the contents of the comment.
String nodeName()
Get the node name of this node.
String toString()
[Expand]
Inherited Methods
From class org.jsoup.nodes.Node
From class java.lang.Object

Public Constructors

public Comment (String data, String baseUri)

Create a new comment node.

Parameters
data The contents of the comment
baseUri base URI

Public Methods

public String getData ()

Get the contents of the comment.

Returns
  • comment content

public String nodeName ()

Get the node name of this node. Use for debugging purposes and not logic switching (for that, use instanceof).

Returns
  • node name

public String toString ()