1 22 23 28 package org.xquark.xquery.parser; 29 30 import org.xquark.xquery.typing.TypeException; 31 32 public class XMLComment extends XQueryUnaryOperatorExpression implements Cloneable { 33 private static final String RCSRevision = "$Revision: 1.6 $"; 34 private static final String RCSName = "$Name: $"; 35 36 protected boolean computed = false; 38 39 43 public void accept(ParserVisitor visitor) throws XQueryException { 44 visitor.visit(this); 45 } 46 47 51 public XMLComment(XQueryExpression comment, XQueryModule parentModule) throws TypeException, XQueryException { 52 super(comment); 53 setParentModule(parentModule); 54 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 55 accept(parentModule.getStaticContext().getTypeVisitor()); 56 } 57 58 62 public XQueryExpression getComment() { 63 return expression; 64 } 65 66 public void setIsComputed(boolean computed) { 67 this.computed = computed; 68 } 69 70 public boolean isComputed() { 71 return computed; 72 } 73 74 } 75 | Popular Tags |