Class ASTHtmlElement
- 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
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.impl.GenericNode<HtmlNode>
,net.sourceforge.pmd.lang.ast.Node
,HtmlNode
,net.sourceforge.pmd.reporting.Reportable
- Direct Known Subclasses:
ASTHtmlDocument
public class ASTHtmlElement extends net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,HtmlNode>
-
-
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(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
getAttribute(String rel)
List<net.sourceforge.pmd.lang.rule.xpath.Attribute>
getAttributes()
String
getNodeName()
net.sourceforge.pmd.lang.document.TextRegion
getTextRegion()
Iterator<net.sourceforge.pmd.lang.rule.xpath.Attribute>
getXPathAttributesIterator()
String
getXPathNodeName()
boolean
hasAttribute(String name)
-
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, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
acceptHtmlVisitor
protected <P,R> R acceptHtmlVisitor(HtmlVisitor<? super P,? extends R> visitor, P data)
-
getAttributes
public List<net.sourceforge.pmd.lang.rule.xpath.Attribute> getAttributes()
-
hasAttribute
public boolean hasAttribute(String name)
-
getXPathAttributesIterator
public Iterator<net.sourceforge.pmd.lang.rule.xpath.Attribute> getXPathAttributesIterator()
-
getNodeName
public String getNodeName()
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfacenet.sourceforge.pmd.lang.ast.Node
-
getTextRegion
public net.sourceforge.pmd.lang.document.TextRegion getTextRegion()
- Specified by:
getTextRegion
in interfacenet.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 interfacenet.sourceforge.pmd.lang.ast.Node
-
addChild
protected void addChild(net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?> child, int index)
- Overrides:
addChild
in classnet.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.html.ast.AbstractHtmlNode<?>,HtmlNode>
-
-