1 22 23 package org.xquark.xquery.parser; 24 25 26 public class XQueryVoid extends XQueryExpression implements Cloneable { 27 28 private static final String RCSRevision = "$Revision: 1.6 $"; 29 private static final String RCSName = "$Name: $"; 30 31 35 public void accept(ParserVisitor visitor) throws XQueryException { visitor.visit(this); } 36 37 41 public XQueryVoid(XQueryModule parentModule) throws XQueryException { 42 setParenthesis(true); 43 setParentModule(parentModule); 44 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 45 accept(parentModule.getStaticContext().getTypeVisitor()); 46 } 47 48 52 public void setParentModule(XQueryModule parentUnit) { 53 if (parentUnit == null) return; 54 this.parentModule = parentUnit; 55 super.setParentModule(parentUnit); 56 } 57 58 } 59 | Popular Tags |