net.sourceforge.pmd.lang.html.ast.ASTHtmlComment Maven / Gradle / Ivy
The newest version!
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.html.ast;
import org.jsoup.nodes.Comment;
import net.sourceforge.pmd.lang.rule.xpath.CommentNode;
public final class ASTHtmlComment extends AbstractHtmlNode implements CommentNode {
ASTHtmlComment(Comment node) {
super(node);
}
@Override
public String getData() {
return node.getData();
}
@Override
protected R acceptHtmlVisitor(HtmlVisitor super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
@Override
public String getXPathNodeName() {
return CommentNode.super.getXPathNodeName();
}
}