1 package net.sf.saxon.tree; 2 import net.sf.saxon.event.Receiver; 3 import net.sf.saxon.trans.XPathException; 4 import net.sf.saxon.type.Type; 5 6 10 11 12 final class CommentImpl extends NodeImpl { 13 14 String comment; 15 16 public CommentImpl(String content) { 17 this.comment = content; 18 } 19 20 public final String getStringValue() { 21 return comment; 22 } 23 24 public final int getNodeKind() { 25 return Type.COMMENT; 26 } 27 28 31 32 public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException { 33 out.comment(comment, locationId, 0); 34 } 35 36 } 37 38 39 | Popular Tags |