1 22 23 package org.xquark.xquery.parser.primitivefunctions.xsfunctions; 24 25 import java.util.ArrayList ; 26 27 import org.xquark.xquery.parser.*; 28 import org.xquark.xquery.typing.TypeException; 29 30 public class FunctionQNAME extends PrimitiveFunctionCall { 31 32 36 public void accept(ParserVisitor visitor) throws XQueryException { 37 visitor.visit(this); 38 } 39 40 44 public FunctionQNAME(ArrayList args, XQueryModule parentModule) throws TypeException, XQueryException { 45 super(new QName("QName",null),args); 46 setParentModule(parentModule); 47 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 48 accept(parentModule.getStaticContext().getTypeVisitor()); 49 } 50 51 public void setArguments(ArrayList arguments) throws XQueryException { 52 if (arguments == null || arguments.size() != 1) throw new XQueryException("function QName should have one argument"); 53 super.setArguments(arguments); 54 } 55 56 } 57 | Popular Tags |