Class ElementNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.ElementNode
-
- All Implemented Interfaces:
javax.xml.transform.Source
,net.sf.saxon.evpull.PullEvent
,net.sf.saxon.om.Item
,net.sf.saxon.om.NodeInfo
,net.sf.saxon.om.SiblingCountingNode
,net.sf.saxon.om.ValueRepresentation
,net.sf.saxon.om.VirtualNode
public class ElementNode extends AbstractNodeInfo
A Saxon OM Element type node for an AST Node.
-
-
Field Summary
Fields Modifier and Type Field Description protected net.sf.saxon.om.NodeInfo[]
children
protected DocumentNode
document
protected int
id
protected Node
node
protected ElementNode
parent
protected int
siblingPosition
-
Constructor Summary
Constructors Constructor Description ElementNode(DocumentNode document, IdGenerator idGenerator, ElementNode parent, Node node, int siblingPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareOrder(net.sf.saxon.om.NodeInfo other)
int
getColumnNumber()
net.sf.saxon.om.DocumentInfo
getDocumentRoot()
int
getLineNumber()
java.lang.String
getLocalPart()
int
getNodeKind()
net.sf.saxon.om.NodeInfo
getParent()
int
getSiblingPosition()
java.lang.Object
getUnderlyingNode()
java.lang.String
getURI()
boolean
hasChildNodes()
net.sf.saxon.om.AxisIterator
iterateAxis(byte axisNumber)
-
Methods inherited from class net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
atomize, copy, createUnsupportedOperationException, equals, generateId, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getFingerprint, getNameCode, getNamePool, getPrefix, getRoot, getStringValue, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, setSystemId
-
-
-
-
Field Detail
-
document
protected final DocumentNode document
-
parent
protected final ElementNode parent
-
node
protected final Node node
-
id
protected final int id
-
siblingPosition
protected final int siblingPosition
-
children
protected final net.sf.saxon.om.NodeInfo[] children
-
-
Constructor Detail
-
ElementNode
public ElementNode(DocumentNode document, IdGenerator idGenerator, ElementNode parent, Node node, int siblingPosition)
-
-
Method Detail
-
getUnderlyingNode
public java.lang.Object getUnderlyingNode()
- Specified by:
getUnderlyingNode
in interfacenet.sf.saxon.om.VirtualNode
- Overrides:
getUnderlyingNode
in classAbstractNodeInfo
-
getSiblingPosition
public int getSiblingPosition()
- Specified by:
getSiblingPosition
in interfacenet.sf.saxon.om.SiblingCountingNode
- Overrides:
getSiblingPosition
in classAbstractNodeInfo
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getColumnNumber
in classAbstractNodeInfo
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getLineNumber
in classAbstractNodeInfo
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
hasChildNodes
in classAbstractNodeInfo
-
getNodeKind
public int getNodeKind()
- Specified by:
getNodeKind
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getNodeKind
in classAbstractNodeInfo
-
getDocumentRoot
public net.sf.saxon.om.DocumentInfo getDocumentRoot()
- Specified by:
getDocumentRoot
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getDocumentRoot
in classAbstractNodeInfo
-
getLocalPart
public java.lang.String getLocalPart()
- Specified by:
getLocalPart
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getLocalPart
in classAbstractNodeInfo
-
getURI
public java.lang.String getURI()
- Specified by:
getURI
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getURI
in classAbstractNodeInfo
-
getParent
public net.sf.saxon.om.NodeInfo getParent()
- Specified by:
getParent
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getParent
in classAbstractNodeInfo
-
compareOrder
public int compareOrder(net.sf.saxon.om.NodeInfo other)
- Specified by:
compareOrder
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
compareOrder
in classAbstractNodeInfo
-
iterateAxis
public net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber)
- Specified by:
iterateAxis
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
iterateAxis
in classAbstractNodeInfo
-
-