Class DocumentNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.DocumentNode
-
- All Implemented Interfaces:
Source
,net.sf.saxon.evpull.PullEvent
,net.sf.saxon.om.DocumentInfo
,net.sf.saxon.om.FingerprintedNode
,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
,net.sourceforge.pmd.lang.ast.xpath.internal.AstNodeOwner
@Deprecated @InternalApi public class DocumentNode extends AbstractNodeInfo implements net.sf.saxon.om.DocumentInfo, net.sourceforge.pmd.lang.ast.xpath.internal.AstNodeOwner
Deprecated.A Saxon OM Document node for an AST Node.
-
-
Field Summary
Fields Modifier and Type Field Description Map<Node,ElementNode>
nodeToElementNode
Deprecated.Mapping from AST Node to corresponding ElementNode.protected ElementNode
parent
protected ElementNode
rootNode
Deprecated.The root ElementNode of the DocumentNode.
-
Constructor Summary
Constructors Constructor Description DocumentNode(Node node)
Deprecated.DocumentNode(Node node, net.sf.saxon.om.NamePool namePool)
Deprecated.Construct a DocumentNode, with the given AST Node serving as the root ElementNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttrLogger
getAttrCtx()
Deprecated.String
getBaseURI()
net.sf.saxon.om.DocumentInfo
getDocumentRoot()
Deprecated.int
getFingerprint()
int
getNameCode()
net.sf.saxon.om.NamePool
getNamePool()
int
getNodeKind()
net.sf.saxon.om.NodeInfo
getParent()
String
getPrefix()
Node
getUnderlyingNode()
Deprecated.String[]
getUnparsedEntity(String name)
Deprecated.Iterator
getUnparsedEntityNames()
Deprecated.String
getURI()
boolean
hasChildNodes()
Deprecated.net.sf.saxon.om.AxisIterator
iterateAxis(byte axisNumber)
Deprecated.net.sf.saxon.om.NodeInfo
selectID(String id)
Deprecated.void
setAttrCtx(net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttrLogger attrCtx)
Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
atomize, compareOrder, copy, createUnsupportedOperationException, equals, filter, generateId, getAttributeValue, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getLineNumber, getLocalPart, getRoot, getSiblingPosition, getStringValue, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, setSystemId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.NodeInfo
atomize, compareOrder, copy, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeKind, getParent, getPrefix, getRoot, getStringValue, getSystemId, getTypeAnnotation, getURI, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis
-
Methods inherited from interface javax.xml.transform.Source
isEmpty, setSystemId
-
-
-
-
Field Detail
-
rootNode
protected final ElementNode rootNode
Deprecated.The root ElementNode of the DocumentNode.
-
nodeToElementNode
public final Map<Node,ElementNode> nodeToElementNode
Deprecated.Mapping from AST Node to corresponding ElementNode.
-
parent
protected final ElementNode parent
-
-
Constructor Detail
-
DocumentNode
public DocumentNode(Node node, net.sf.saxon.om.NamePool namePool)
Deprecated.Construct a DocumentNode, with the given AST Node serving as the root ElementNode.- Parameters:
node
- The root AST Node.namePool
- Pool to share names- See Also:
ElementNode
-
DocumentNode
@Deprecated public DocumentNode(Node node)
Deprecated.
-
-
Method Detail
-
getUnparsedEntity
public String[] getUnparsedEntity(String name)
Deprecated.- Specified by:
getUnparsedEntity
in interfacenet.sf.saxon.om.DocumentInfo
-
getUnparsedEntityNames
public Iterator getUnparsedEntityNames()
Deprecated.- Specified by:
getUnparsedEntityNames
in interfacenet.sf.saxon.om.DocumentInfo
-
selectID
public net.sf.saxon.om.NodeInfo selectID(String id)
Deprecated.- Specified by:
selectID
in interfacenet.sf.saxon.om.DocumentInfo
-
getDocumentRoot
public net.sf.saxon.om.DocumentInfo getDocumentRoot()
Deprecated.- Specified by:
getDocumentRoot
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getDocumentRoot
in classAbstractNodeInfo
-
hasChildNodes
public boolean hasChildNodes()
Deprecated.- Specified by:
hasChildNodes
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
hasChildNodes
in classAbstractNodeInfo
-
iterateAxis
public net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber)
Deprecated.- Specified by:
iterateAxis
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
iterateAxis
in classAbstractNodeInfo
-
getUnderlyingNode
public Node getUnderlyingNode()
Deprecated.- Specified by:
getUnderlyingNode
in interfacenet.sourceforge.pmd.lang.ast.xpath.internal.AstNodeOwner
- Specified by:
getUnderlyingNode
in interfacenet.sf.saxon.om.VirtualNode
- Overrides:
getUnderlyingNode
in classAbstractNodeInfo
-
getAttrCtx
public net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttrLogger getAttrCtx()
Deprecated.
-
setAttrCtx
public void setAttrCtx(net.sourceforge.pmd.lang.ast.xpath.internal.DeprecatedAttrLogger attrCtx)
Deprecated.
-
getURI
public final String getURI()
- Specified by:
getURI
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getURI
in classAbstractNodeInfo
-
getBaseURI
public final String getBaseURI()
- Specified by:
getBaseURI
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getBaseURI
in classAbstractNodeInfo
-
getPrefix
public String getPrefix()
- Specified by:
getPrefix
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getPrefix
in classAbstractNodeInfo
-
getParent
public final net.sf.saxon.om.NodeInfo getParent()
- Specified by:
getParent
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getParent
in classAbstractNodeInfo
-
getNameCode
public int getNameCode()
- Specified by:
getNameCode
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getNameCode
in classAbstractNodeInfo
-
getFingerprint
public final int getFingerprint()
- Specified by:
getFingerprint
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getFingerprint
in classAbstractNodeInfo
-
getNamePool
public final net.sf.saxon.om.NamePool getNamePool()
- Specified by:
getNamePool
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getNamePool
in classAbstractNodeInfo
-
getNodeKind
public final int getNodeKind()
- Specified by:
getNodeKind
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getNodeKind
in classAbstractNodeInfo
-
-