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 FunctionEXPANDED_QNAME extends PrimitiveFunctionCall { 31 32 36 public void accept(ParserVisitor visitor) throws XQueryException { 37 visitor.visit(this); 38 } 39 40 44 public FunctionEXPANDED_QNAME(ArrayList args, XQueryModule parentModule) throws TypeException, XQueryException { 45 super(new QName("expanded-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() != 2) throw new XQueryException("function expanded-QName should have two arguments"); 53 super.setArguments(arguments); 54 } 55 56 } 57 | Popular Tags |