1 23 24 29 30 package org.xquark.xquery.typing; 31 32 import org.xquark.xquery.parser.XQueryException; 33 34 public class QTypeProcessingInstruction extends QTypeNode implements QTypeVisitable { 35 private static final String RCSRevision = "$Revision: 1.1 $"; 36 private static final String RCSName = "$Name: $"; 37 38 42 public QTypeProcessingInstruction() { 43 subclass = PROCESSING; 44 occurence = OCC_1_1; 45 } 46 public QTypeProcessingInstruction(byte occurence) { 47 subclass = PROCESSING; 48 this.occurence = occurence; 49 } 50 51 55 public void accept(QTypeVisitor visitor) throws XQueryException { 56 visitor.visit(this); 57 } 58 59 63 public boolean equals(Object qtype) { 65 if (!(qtype instanceof QTypeProcessingInstruction)) 66 return false; 67 return true; 70 } 71 72 public boolean isNode() { 74 return true; 75 } 76 77 public Object clone() throws CloneNotSupportedException { 79 QTypeProcessingInstruction newObj = new QTypeProcessingInstruction(occurence); 80 return newObj; 81 } 82 public String toSimpleString() { 84 return "QTypeProcessingInstruction()"; 85 } 86 87 public String toString() { 88 return "QTypeProcessingInstruction()"; 89 } 90 } 91 | Popular Tags |