net.sourceforge.pmd.lang.ast.Node
, net.sourceforge.pmd.lang.ast.xpath.AttributeNode
, XmlNode
, org.w3c.dom.Node
XmlParser.RootXmlNode
public class XmlNodeWrapper extends AbstractDomNodeProxy implements XmlNode
Node
) to implement PMD interfaces.node
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE
Constructor | Description |
---|---|
XmlNodeWrapper(XmlParser parser,
org.w3c.dom.Node domNode) |
Modifier and Type | Method | Description |
---|---|---|
org.w3c.dom.Document |
getAsDocument() |
|
java.util.Iterator<net.sourceforge.pmd.lang.ast.xpath.Attribute> |
getAttributeIterator() |
|
int |
getBeginColumn() |
|
int |
getBeginLine() |
|
net.sourceforge.pmd.lang.dfa.DataFlowNode |
getDataFlowNode() |
|
int |
getEndColumn() |
|
int |
getEndLine() |
|
java.lang.String |
getImage() |
|
org.w3c.dom.Node |
getNode() |
Provide access to the underlying DOM node.
|
java.lang.Object |
getUserData() |
|
java.lang.String |
getXPathNodeName() |
|
boolean |
hasImageEqualTo(java.lang.String image) |
|
boolean |
isFindBoundary() |
|
void |
jjtAddChild(net.sourceforge.pmd.lang.ast.Node child,
int index) |
|
void |
jjtClose() |
|
XmlNode |
jjtGetChild(int index) |
|
int |
jjtGetChildIndex() |
|
int |
jjtGetId() |
|
int |
jjtGetNumChildren() |
|
XmlNode |
jjtGetParent() |
|
void |
jjtSetChildIndex(int index) |
|
void |
jjtSetParent(net.sourceforge.pmd.lang.ast.Node parent) |
|
void |
remove() |
|
void |
removeChildAtIndex(int childIndex) |
|
void |
setDataFlowNode(net.sourceforge.pmd.lang.dfa.DataFlowNode dataFlowNode) |
|
void |
setImage(java.lang.String image) |
|
void |
setUserData(java.lang.Object userData) |
|
java.lang.String |
toString() |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getNthParent, getParentsOfType, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, isSingleLine, jjtGetFirstToken, jjtGetLastToken, jjtOpen, jjtSetFirstToken, jjtSetLastToken, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getNthParent, getParentsOfType, hasDescendantMatchingXPath, hasDescendantOfType, jjtOpen
public XmlNodeWrapper(XmlParser parser, org.w3c.dom.Node domNode)
public void jjtClose()
jjtClose
in interface net.sourceforge.pmd.lang.ast.Node
jjtClose
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void jjtSetParent(net.sourceforge.pmd.lang.ast.Node parent)
jjtSetParent
in interface net.sourceforge.pmd.lang.ast.Node
jjtSetParent
in class net.sourceforge.pmd.lang.ast.AbstractNode
public XmlNode jjtGetParent()
jjtGetParent
in interface net.sourceforge.pmd.lang.ast.Node
jjtGetParent
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void jjtAddChild(net.sourceforge.pmd.lang.ast.Node child, int index)
jjtAddChild
in interface net.sourceforge.pmd.lang.ast.Node
jjtAddChild
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void jjtSetChildIndex(int index)
jjtSetChildIndex
in interface net.sourceforge.pmd.lang.ast.Node
jjtSetChildIndex
in class net.sourceforge.pmd.lang.ast.AbstractNode
public int jjtGetChildIndex()
jjtGetChildIndex
in interface net.sourceforge.pmd.lang.ast.Node
jjtGetChildIndex
in class net.sourceforge.pmd.lang.ast.AbstractNode
public XmlNode jjtGetChild(int index)
jjtGetChild
in interface net.sourceforge.pmd.lang.ast.Node
jjtGetChild
in class net.sourceforge.pmd.lang.ast.AbstractNode
public int jjtGetNumChildren()
jjtGetNumChildren
in interface net.sourceforge.pmd.lang.ast.Node
jjtGetNumChildren
in class net.sourceforge.pmd.lang.ast.AbstractNode
public int jjtGetId()
jjtGetId
in interface net.sourceforge.pmd.lang.ast.Node
jjtGetId
in class net.sourceforge.pmd.lang.ast.AbstractNode
public java.lang.String getImage()
getImage
in interface net.sourceforge.pmd.lang.ast.Node
getImage
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void setImage(java.lang.String image)
setImage
in interface net.sourceforge.pmd.lang.ast.Node
setImage
in class net.sourceforge.pmd.lang.ast.AbstractNode
public boolean hasImageEqualTo(java.lang.String image)
hasImageEqualTo
in interface net.sourceforge.pmd.lang.ast.Node
hasImageEqualTo
in class net.sourceforge.pmd.lang.ast.AbstractNode
public int getBeginLine()
getBeginLine
in interface net.sourceforge.pmd.lang.ast.Node
getBeginLine
in class net.sourceforge.pmd.lang.ast.AbstractNode
public int getBeginColumn()
getBeginColumn
in interface net.sourceforge.pmd.lang.ast.Node
getBeginColumn
in class net.sourceforge.pmd.lang.ast.AbstractNode
public int getEndLine()
getEndLine
in interface net.sourceforge.pmd.lang.ast.Node
getEndLine
in class net.sourceforge.pmd.lang.ast.AbstractNode
public int getEndColumn()
getEndColumn
in interface net.sourceforge.pmd.lang.ast.Node
getEndColumn
in class net.sourceforge.pmd.lang.ast.AbstractNode
public net.sourceforge.pmd.lang.dfa.DataFlowNode getDataFlowNode()
getDataFlowNode
in interface net.sourceforge.pmd.lang.ast.Node
getDataFlowNode
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void setDataFlowNode(net.sourceforge.pmd.lang.dfa.DataFlowNode dataFlowNode)
setDataFlowNode
in interface net.sourceforge.pmd.lang.ast.Node
setDataFlowNode
in class net.sourceforge.pmd.lang.ast.AbstractNode
public boolean isFindBoundary()
isFindBoundary
in interface net.sourceforge.pmd.lang.ast.Node
isFindBoundary
in class net.sourceforge.pmd.lang.ast.AbstractNode
public org.w3c.dom.Document getAsDocument()
getAsDocument
in interface net.sourceforge.pmd.lang.ast.Node
getAsDocument
in class net.sourceforge.pmd.lang.ast.AbstractNode
public java.lang.Object getUserData()
getUserData
in interface net.sourceforge.pmd.lang.ast.Node
getUserData
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void setUserData(java.lang.Object userData)
setUserData
in interface net.sourceforge.pmd.lang.ast.Node
setUserData
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void remove()
remove
in interface net.sourceforge.pmd.lang.ast.Node
remove
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void removeChildAtIndex(int childIndex)
removeChildAtIndex
in interface net.sourceforge.pmd.lang.ast.Node
removeChildAtIndex
in class net.sourceforge.pmd.lang.ast.AbstractNode
public java.lang.String getXPathNodeName()
getXPathNodeName
in interface net.sourceforge.pmd.lang.ast.Node
getXPathNodeName
in class net.sourceforge.pmd.lang.ast.AbstractNode
public java.lang.String toString()
toString
in class net.sourceforge.pmd.lang.ast.AbstractNode
public java.util.Iterator<net.sourceforge.pmd.lang.ast.xpath.Attribute> getAttributeIterator()
getAttributeIterator
in interface net.sourceforge.pmd.lang.ast.xpath.AttributeNode
Copyright © 2002–2018 PMD. All rights reserved.