Class ASTHtmlTextNode

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.impl.GenericNode<HtmlNode>, net.sourceforge.pmd.lang.ast.Node, HtmlNode, net.sourceforge.pmd.lang.rule.xpath.TextNode, net.sourceforge.pmd.reporting.Reportable

    public class ASTHtmlTextNode
    extends net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,​HtmlNode>
    implements net.sourceforge.pmd.lang.rule.xpath.TextNode
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int endOffset  
      protected T node  
      protected int startOffset  
      • Fields inherited from interface net.sourceforge.pmd.lang.ast.Node

        COORDS_COMPARATOR
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <P,​R>
      R
      acceptHtmlVisitor​(HtmlVisitor<? super P,​? extends R> visitor, P data)  
      <P,​R>
      R
      acceptVisitor​(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,​? extends R> visitor, P data)  
      protected void addChild​(net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?> child, int index)  
      String getNodeName()  
      String getText()  
      net.sourceforge.pmd.lang.document.TextRegion getTextRegion()  
      String getWholeText()  
      String getXPathNodeName()  
      • Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode

        children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, insertChild, remove, removeChildAtIndex, setChild, setParent, toString
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode

        ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.Node

        acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, hasImageEqualTo, isFindBoundary
    • Field Detail

      • node

        protected final T extends org.jsoup.nodes.Node node
      • startOffset

        protected int startOffset
      • endOffset

        protected int endOffset
    • Method Detail

      • 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 net.sourceforge.pmd.lang.rule.xpath.TextNode
      • getXPathNodeName

        public String getXPathNodeName()
        Specified by:
        getXPathNodeName in interface net.sourceforge.pmd.lang.ast.Node
        Specified by:
        getXPathNodeName in interface net.sourceforge.pmd.lang.rule.xpath.TextNode
      • getNodeName

        public String getNodeName()
      • getTextRegion

        public net.sourceforge.pmd.lang.document.TextRegion getTextRegion()
        Specified by:
        getTextRegion in interface net.sourceforge.pmd.lang.ast.Node
      • acceptVisitor

        public final <P,​R> R acceptVisitor​(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,​? extends R> visitor,
                                                 P data)
        Specified by:
        acceptVisitor in interface net.sourceforge.pmd.lang.ast.Node
      • addChild

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