XQuilla/include/xqilla/ast/XQVariable.hpp
2020-02-17 22:11:31 +01:00

46 lines
1.2 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: XQVariable.hpp,v 1.8 2007/07/10 16:28:57 jpcs Exp $
*/
#ifndef _XQVARIABLE_HPP
#define _XQVARIABLE_HPP
#include <xqilla/framework/XQillaExport.hpp>
#include <xqilla/ast/ASTNodeImpl.hpp>
#include <xqilla/runtime/Sequence.hpp>
/** Deals with all the simple variable stuff.*/
class XQILLA_API XQVariable : public ASTNodeImpl
{
public:
XQVariable(const XMLCh *qualifiedName, XPath2MemoryManager* memMgr);
XQVariable(const XMLCh *uri, const XMLCh *name, XPath2MemoryManager* memMgr);
~XQVariable();
virtual Result createResult(DynamicContext* context, int flags=0) const;
virtual ASTNode* staticResolution(StaticContext *context);
virtual ASTNode *staticTyping(StaticContext *context);
const XMLCh *getPrefix() const;
const XMLCh *getURI() const;
const XMLCh *getName() const;
private:
const XMLCh* _prefix;
const XMLCh* _uri;
const XMLCh* _name;
};
#endif