1 22 23 package org.xquark.xquery.parser.primitivefunctions.fnfunctions; 24 25 import java.util.ArrayList ; 26 27 import org.xquark.xquery.parser.*; 28 import org.xquark.xquery.typing.TypeException; 29 30 public class FunctionMIN extends AggregateFunctionCall { 31 32 private static final String RCSRevision = "$Revision: 1.6 $"; 33 private static final String RCSName = "$Name: $"; 34 35 39 public void accept(ParserVisitor visitor) throws XQueryException { 40 visitor.visit(this); 41 } 42 43 47 public FunctionMIN(ArrayList args, XQueryModule parentModule) throws TypeException, XQueryException 48 49 { 50 super(new QName("min",null),args); 51 setParentModule(parentModule); 52 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 53 accept(parentModule.getStaticContext().getTypeVisitor()); 54 } 55 56 public void setArguments(ArrayList arguments) throws XQueryException { 58 if (arguments == null || arguments.size() != 1) throw new XQueryException("Function min should have one argument"); 59 super.setArguments(arguments); 60 } 61 62 } 63 | Popular Tags |