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