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