1 22 23 package org.xquark.xquery.parser; 24 25 import org.xquark.xquery.parser.util.Constants; 26 import org.xquark.xquery.typing.TypeException; 27 28 29 public class SchemaContextStep extends XQueryUnaryOperatorExpression implements Cloneable { 30 private static final String RCSRevision = "$Revision: 1.8 $"; 31 private static final String RCSName = "$Name: $"; 32 33 private byte axis = Constants.NOAXIS; 34 35 39 public void accept(ParserVisitor visitor) throws XQueryException { 40 visitor.visit(this); 41 } 42 43 47 public SchemaContextStep(byte axis, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException { 48 super(expression); 49 setAxis(axis); 50 setParentModule(parentModule); 51 } 52 53 57 public byte getAxis() { 58 return axis; 59 } 60 public void setAxis(byte axis) { 61 this.axis = axis; 62 } 63 64 public void addParentExpression(XQueryExpression parentExpression) { 68 addParentExpression(parentExpression); 69 expression.addParentExpression(parentExpression); 70 } 71 72 } 73 | Popular Tags |