XQuilla/include/xqilla/ast/XQFunctionCall.hpp
2020-02-17 22:05:20 +01:00

49 lines
1.5 KiB
C++

/*
* Copyright (c) 2001-2006
* DecisionSoft Limited. All rights reserved.
* Copyright (c) 2004-2006
* Progress Software Corporation. All rights reserved.
* Copyright (c) 2004-2006
* Oracle. All rights reserved.
*
* See the file LICENSE for redistribution information.
*
* $Id: XQFunctionCall.hpp,v 1.9 2006/11/01 16:37:11 jpcs Exp $
*/
//////////////////////////////////////////////////////////////////////
// XQFunctionCall.hpp: interface for the XQFunctionCall class.
//////////////////////////////////////////////////////////////////////
#if !defined(AFXQ_XQFUNCTIONCALL_H__2B6902E9_A4FA_4AB3_9C69_08A8E77E70DA__INCLUDED_)
#define AFXQ_XQFUNCTIONCALL_H__2B6902E9_A4FA_4AB3_9C69_08A8E77E70DA__INCLUDED_
#include <xqilla/framework/XQillaExport.hpp>
#include <xqilla/ast/ASTNodeImpl.hpp>
class QualifiedName;
/** placeholder for function calls. */
class XQILLA_API XQFunctionCall : public ASTNodeImpl
{
public:
XQFunctionCall(QualifiedName* qname, const VectorOfASTNodes &args, XPath2MemoryManager* expr);
/** always throws an exception **/
Result createResult(DynamicContext* context, int flags=0) const;
/**
* Will perform the binding with the real function body
*/
virtual ASTNode* staticResolution(StaticContext *context);
virtual ASTNode *staticTyping(StaticContext *context);
const QualifiedName *getName() const;
const VectorOfASTNodes &getArguments() const;
protected:
VectorOfASTNodes _args;
QualifiedName* _qname;
};
#endif // !defined(AFXQ_XQFUNCTIONCALL_H__2B6902E9_A4FA_4AB3_9C69_08A8E77E70DA__INCLUDED_)