Class ASTHtmlDocument
java.lang.Object
net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,HtmlNode>
net.sourceforge.pmd.lang.html.ast.ASTHtmlElement
net.sourceforge.pmd.lang.html.ast.ASTHtmlDocument
- All Implemented Interfaces:
GenericNode<HtmlNode>,Node,RootNode,HtmlNode,Reportable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final org.jsoup.nodes.Elementprotected intFields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionprotected <P,R> R acceptHtmlVisitor(HtmlVisitor<? super P, ? extends R> visitor, P data) final <P,R> R acceptVisitor(AstVisitor<? super P, ? extends R> visitor, P data) protected voidaddChild(net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?> child, int index) Methods inherited from class net.sourceforge.pmd.lang.html.ast.ASTHtmlElement
getAttribute, getAttributes, getXPathAttributesIterator, hasAttributeMethods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, insertChild, remove, removeChildAtIndex, setChild, setParent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSiblingMethods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundary
-
Field Details
-
node
protected final org.jsoup.nodes.Element node -
startOffset
protected int startOffset -
endOffset
protected int endOffset
-
-
Method Details
-
acceptHtmlVisitor
- Overrides:
acceptHtmlVisitorin classASTHtmlElement
-
getAstInfo
- Specified by:
getAstInfoin interfaceNode- Specified by:
getAstInfoin interfaceRootNode
-
getNodeName
-
getXPathNodeName
- Specified by:
getXPathNodeNamein interfaceNode
-
getTextRegion
- Specified by:
getTextRegionin interfaceNode
-
acceptVisitor
- Specified by:
acceptVisitorin interfaceNode
-
addChild
protected void addChild(net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?> child, int index) - Overrides:
addChildin classAbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,HtmlNode>
-