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 FunctionINPUT extends FunctionCOLLECTION { 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 FunctionINPUT(ArrayList args, XQueryModule parentModule) throws TypeException, XQueryException { 48 super(args,parentModule); 49 this.setFuncName(new QName("input",null)); 50 setParentModule(parentModule); 51 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 52 accept(parentModule.getStaticContext().getTypeVisitor()); 53 } 54 55 public void setArguments(ArrayList arguments) throws XQueryException { 56 if (arguments != null && arguments.size() != 0) throw new XQueryException("Function input cannot have any arguments"); 57 super.setArguments(null); 58 } 59 60 } 61 | Popular Tags |