Class ASTHtmlTextNode

java.lang.Object
net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,HtmlNode>
net.sourceforge.pmd.lang.html.ast.ASTHtmlTextNode
All Implemented Interfaces:
GenericNode<HtmlNode>, Node, HtmlNode, TextNode, Reportable

public class ASTHtmlTextNode extends AbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,HtmlNode> implements TextNode
  • Field Details

    • node

      protected final org.jsoup.nodes.TextNode node
    • startOffset

      protected int startOffset
    • endOffset

      protected int endOffset
  • Method Details

    • acceptHtmlVisitor

      protected <P, R> R acceptHtmlVisitor(HtmlVisitor<? super P,? extends R> visitor, P data)
    • getWholeText

      public String getWholeText()
    • getText

      public String getText()
      Specified by:
      getText in interface TextNode
    • getXPathNodeName

      public String getXPathNodeName()
      Specified by:
      getXPathNodeName in interface Node
      Specified by:
      getXPathNodeName in interface TextNode
    • getNodeName

      public String getNodeName()
    • getTextRegion

      public TextRegion getTextRegion()
      Specified by:
      getTextRegion in interface Node
    • acceptVisitor

      public final <P, R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
      Specified by:
      acceptVisitor in interface Node
    • addChild

      protected void addChild(net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?> child, int index)
      Overrides:
      addChild in class AbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,HtmlNode>