/* * Copyright (c) 2001, DecisionSoft Limited All rights reserved. * Please see LICENSE.TXT for more information. */ #ifndef _CONSTANTFOLDINGFUNCTION_HPP #define _CONSTANTFOLDINGFUNCTION_HPP #include #include #include class PATHAN_EXPORT ConstantFoldingFunction : public DataItemFunction { public: ConstantFoldingFunction(const XMLCh* name, unsigned int argsFrom, unsigned int argsTo, const char* paramDecl, const VectorOfDataItems &args, XPath2MemoryManager* memMgr); virtual ~ConstantFoldingFunction(); /** * Called during static analysis to determine if statically correct. * Performs constant folding if the arguments to the function are * all constant. */ virtual DataItem* staticResolution(StaticContext *context, StaticResolutionContext *src); }; #endif