1 22 23 24 package org.xquark.xquery.parser.primitivefunctions.fnfunctions; 25 26 import java.util.ArrayList ; 27 28 import org.xquark.xquery.parser.*; 29 import org.xquark.xquery.typing.TypeException; 30 31 40 public class FunctionGET_MONTH_FROM_DATE extends PrimitiveFunctionCall { 41 42 private static final String RCSRevision = "$Revision: 1.6 $"; 43 private static final String RCSName = "$Name: $"; 44 45 49 public void accept(ParserVisitor visitor) throws XQueryException { 50 visitor.visit(this); 51 } 52 53 57 public FunctionGET_MONTH_FROM_DATE(ArrayList args, XQueryModule parentModule) throws TypeException, XQueryException { 58 super(new QName("get-month-from-date",null),args); 59 setParentModule(parentModule); 60 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 61 accept(parentModule.getStaticContext().getTypeVisitor()); 62 } 63 64 public void setArguments(ArrayList arguments) throws XQueryException { 66 if (arguments == null || arguments.size() != 1) throw new XQueryException("function get-month-from-date should have one argument"); 67 super.setArguments(arguments); 68 } 69 70 } 71 72 73 | Popular Tags |