XQuilla/include/xqilla/update/UInsertAsFirst.hpp

41 lines
1.1 KiB
C++
Raw Normal View History

2020-02-17 21:11:31 +00:00
/*
* 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: UInsertAsFirst.hpp,v 1.1 2006/12/02 02:11:48 jpcs Exp $
*/
#ifndef _UINSERTASFIRST_HPP
#define _UINSERTASFIRST_HPP
#include <xqilla/framework/XQillaExport.hpp>
#include <xqilla/ast/ASTNodeImpl.hpp>
class XQILLA_API UInsertAsFirst : public ASTNodeImpl
{
public:
UInsertAsFirst(ASTNode *source, ASTNode *target, XPath2MemoryManager* memMgr);
virtual ASTNode *staticResolution(StaticContext *context);
virtual ASTNode *staticTyping(StaticContext *context);
virtual PendingUpdateList createUpdateList(DynamicContext *context) const;
const ASTNode *getSource() const { return source_; }
void setSource(ASTNode *source) { source_ = source; }
const ASTNode *getTarget() const { return target_; }
void setTarget(ASTNode *target) { target_ = target; }
protected:
ASTNode *source_;
ASTNode *target_;
};
#endif