public class SaplingComment extends SaplingNode
| Constructor and Description |
|---|
SaplingComment(java.lang.String value)
Construct a sapling comment node with a given string value
|
| Modifier and Type | Method and Description |
|---|---|
void |
deliver(Receiver receiver,
ParseOptions options)
Send a sequence of events representing this node to a supplied Receiver
|
int |
getNodeKind()
Get the kind of node (document, element, text, comment, or processing instruction)
|
java.lang.String |
getStringValue()
Get the string value of the comment node
|
emptyNodeListpublic SaplingComment(java.lang.String value)
value - the string value of the comment node. This should not contain "--" as a substring,
but this condition is not checked.java.lang.NullPointerException - if the supplied value is null.public int getNodeKind()
SaplingNodegetNodeKind in class SaplingNodeType.ELEMENT for an element node.public java.lang.String getStringValue()
public void deliver(Receiver receiver, ParseOptions options) throws XPathException
SaplingNodedeliver in class SaplingNodereceiver - the receiver to which the events are to be sentoptions - parse options (currently ignored)XPathException - if the receiver throws an exceptionCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.