1 22 23 24 package org.xquark.xquery.parser; 25 26 import org.xquark.xpath.NodeKind; 27 import org.xquark.xquery.typing.TypeException; 28 29 public class NodeTest extends XQueryExpression implements Cloneable { 30 31 private static final String RCSRevision = "$Revision: 1.7 $"; 32 private static final String RCSName = "$Name: $"; 33 34 protected byte kind = NodeKind.NONE; 36 XQueryExpression arg = null; 38 39 43 public void accept(ParserVisitor visitor) throws XQueryException { 44 visitor.visit(this); 45 } 46 47 51 public NodeTest(byte kind,XQueryExpression arg, XQueryModule parentModule) throws TypeException, XQueryException { 52 setKind(kind); 53 setArg(arg); 54 setParentModule(parentModule); 55 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 56 accept(parentModule.getStaticContext().getTypeVisitor()); 57 } 58 59 63 public byte getKind() { return kind; } 64 public void setKind(byte kind) throws XQueryException { 65 this.kind = kind ; 66 } 67 68 public XQueryExpression getArg() { return arg; } 69 public void setArg(XQueryExpression arg) { 70 this.arg = arg ; 71 } 72 73 } 74 75 76 77 | Popular Tags |