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