1 22 23 24 package org.xquark.xquery.parser; 25 26 import java.util.ArrayList ; 27 28 import org.xquark.xquery.typing.TypeException; 29 30 public class LibraryFunctionCall extends FunctionCall implements Cloneable { 31 32 private static final String RCSRevision = "$Revision: 1.6 $"; 33 private static final String RCSName = "$Name: $"; 34 35 FunctionDeclaration functionDefinition = null; 36 37 41 public void accept(ParserVisitor visitor) throws XQueryException { 42 visitor.visit(this); 43 } 44 45 49 public LibraryFunctionCall(QName name,ArrayList arguments,FunctionDeclaration funcdef, XQueryModule parentModule) throws TypeException, XQueryException { 50 super(name,arguments); 51 setFunctionDefinition(funcdef); 52 setParentModule(parentModule); 53 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 54 accept(parentModule.getStaticContext().getTypeVisitor()); 55 } 56 57 61 public FunctionDeclaration getFunctionDefinition() { return functionDefinition; } 62 63 public void setFunctionDefinition(FunctionDeclaration functionDefinition) throws TypeException { 64 this.functionDefinition = functionDefinition; 67 } 68 69 } 70 71 72 73 | Popular Tags |