1 22 23 24 package org.xquark.xquery.parser; 25 26 import org.xquark.xquery.typing.TypeException; 27 28 29 31 public class UnOpMinusExpression extends XQueryUnaryOperatorExpression implements Cloneable { 32 private static final String RCSRevision = "$Revision: 1.7 $"; 33 private static final String RCSName = "$Name: $"; 34 35 public boolean minus = false; 36 37 41 public void accept(ParserVisitor visitor) throws XQueryException { 42 visitor.visit(this); 43 } 44 45 49 public UnOpMinusExpression(XQueryExpression expression, boolean minus, XQueryModule parentModule) throws TypeException, XQueryException { 50 super(expression); 51 this.minus = minus; 52 setParentModule(parentModule); 53 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 54 accept(parentModule.getStaticContext().getTypeVisitor()); 55 } 56 57 public boolean getMinus() { return minus; } 58 public void setMinus(boolean minus) { this.minus = minus; } 59 60 } 61 62 63 64 | Popular Tags |