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
public final class ASTHtmlDocument extends ASTHtmlElement implements RootNode
-
-
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>
RacceptHtmlVisitor(HtmlVisitor<? super P,? extends R> visitor, P data)
<P,R>
RacceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
protected void
addChild(net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?> child, int index)
AstInfo<ASTHtmlDocument>
getAstInfo()
String
getNodeName()
TextRegion
getTextRegion()
String
getXPathNodeName()
-
Methods inherited from class net.sourceforge.pmd.lang.html.ast.ASTHtmlElement
getAttribute, getAttributes, getXPathAttributesIterator, hasAttribute
-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getNthParent, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
acceptHtmlVisitor
protected <P,R> R acceptHtmlVisitor(HtmlVisitor<? super P,? extends R> visitor, P data)
- Overrides:
acceptHtmlVisitor
in classASTHtmlElement
-
getAstInfo
public AstInfo<ASTHtmlDocument> getAstInfo()
- Specified by:
getAstInfo
in interfaceNode
- Specified by:
getAstInfo
in interfaceRootNode
-
getNodeName
public String getNodeName()
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfaceNode
-
getTextRegion
public TextRegion getTextRegion()
- Specified by:
getTextRegion
in interfaceNode
-
acceptVisitor
public final <P,R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
- Specified by:
acceptVisitor
in interfaceNode
-
addChild
protected void addChild(net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?> child, int index)
- Overrides:
addChild
in classAbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,HtmlNode>
-
-