Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XPath/Function.hpp>
Public Types | |
typedef xercesc::Locator | LocatorType |
typedef XPathExecutionContext::XObjectArgVectorType | XObjectArgVectorType |
typedef XPathExecutionContext::GetCachedString | GetCachedString |
typedef XPathExecutionContext::GetCachedNodeList | GetCachedNodeList |
Public Member Functions | |
Function () | |
virtual | ~Function () |
virtual XObjectPtr | execute (XPathExecutionContext &executionContext, XalanNode *context, const XObjectArgVectorType &args, const Locator *locator) const |
Execute an XPath function object. More... | |
virtual XObjectPtr | execute (XPathExecutionContext &executionContext, XalanNode *context, const Locator *locator) const |
Execute an XPath function object. More... | |
virtual XObjectPtr | execute (XPathExecutionContext &executionContext, XalanNode *context, const XObjectPtr arg, const Locator *locator) const |
Execute an XPath function object. More... | |
virtual XObjectPtr | execute (XPathExecutionContext &executionContext, XalanNode *context, const XObjectPtr arg1, const XObjectPtr arg2, const Locator *locator) const |
Execute an XPath function object. More... | |
virtual XObjectPtr | execute (XPathExecutionContext &executionContext, XalanNode *context, const XObjectPtr arg1, const XObjectPtr arg2, const XObjectPtr arg3, const Locator *locator) const |
Execute an XPath function object. More... | |
virtual Function * | clone (MemoryManager &theManager) const =0 |
Create a copy of the function object. More... | |
Protected Member Functions | |
virtual const XalanDOMString & | getError (XalanDOMString &theBuffer) const =0 |
Get the error message to report when the function is called with the wrong number of arguments. More... | |
void | generalError (XPathExecutionContext &executionContext, const XalanNode *context, const Locator *locator) const |
Report the error returned from the getError() call. More... | |
Definition at line 57 of file Function.hpp.
Definition at line 71 of file Function.hpp.
Definition at line 70 of file Function.hpp.
typedef xercesc::Locator xalanc::Function::LocatorType |
Definition at line 61 of file Function.hpp.
Definition at line 69 of file Function.hpp.
|
explicit |
|
virtual |
|
pure virtual |
Create a copy of the function object.
Implemented in xalanc::XalanEXSLTFunctionTan, xalanc::XalanEXSLTFunctionSqrt, xalanc::XalanEXSLTFunctionSin, xalanc::XalanEXSLTFunctionPower, xalanc::XalanEXSLTFunctionMin, xalanc::XalanEXSLTFunctionMax, xalanc::XalanEXSLTFunctionLowest, xalanc::XalanEXSLTFunctionLog, xalanc::XalanEXSLTFunctionHighest, xalanc::XalanEXSLTFunctionExp, xalanc::XalanEXSLTFunctionCos, xalanc::XalanEXSLTFunctionConstant, xalanc::XalanEXSLTFunctionDecodeURI, xalanc::XalanEXSLTFunctionTrailing, xalanc::XalanEXSLTFunctionAtan2, xalanc::XalanEXSLTFunctionEncodeURI, xalanc::XalanEXSLTFunctionAtan, xalanc::XalanEXSLTFunctionLeading, xalanc::XalanEXSLTFunctionAsin, xalanc::XalanEXSLTFunctionIntersection, xalanc::XalanEXSLTFunctionPadding, xalanc::XalanEXSLTFunctionAcos, xalanc::XalanEXSLTFunctionHasSameNode, xalanc::XalanEXSLTFunctionObjectType, xalanc::XalanEXSLTFunctionConcat, xalanc::XalanEXSLTFunctionRandom, xalanc::XalanEXSLTFunctionDistinct, xalanc::FunctionSubstring, xalanc::FunctionConcat, xalanc::FunctionID, xalanc::FunctionNamespaceURI, xalanc::FunctionString, xalanc::FunctionLang, xalanc::FunctionNormalizeSpace, xalanc::FunctionNodeSet, xalanc::XalanEXSLTFunctionEvaluate, xalanc::FunctionDocument, xalanc::FunctionFormatNumber, xalanc::FunctionGenerateID, xalanc::XalanEXSLTFunctionAlign, xalanc::FunctionKey, xalanc::XalanEXSLTFunctionAbs, xalanc::FunctionElementAvailable, xalanc::FunctionFunctionAvailable, xalanc::FunctionTranslate, xalanc::FunctionCurrent, xalanc::FunctionContains, xalanc::FunctionStartsWith, xalanc::FunctionSubstringAfter, xalanc::FunctionSubstringBefore, xalanc::FunctionDifference, xalanc::FunctionDistinct, xalanc::FunctionEvaluate, xalanc::FunctionHasSameNodes, xalanc::FunctionIntersection, xalanc::FunctionSystemProperty, xalanc::XalanEXSLTFunctionDateTime, xalanc::FunctionUnparsedEntityURI, xalanc::XalanEXSLTFunctionDifference, and xalanc::XalanEXSLTFunctionNodeSet.
|
virtual |
Execute an XPath function object.
The function must return a valid object. Called if function has no parameters.
executionContext | executing context |
context | current context node |
locator | Locator instance for the XPath expression that contains the function call |
Reimplemented in xalanc::FunctionNamespaceURI, xalanc::FunctionString, xalanc::FunctionNormalizeSpace, xalanc::FunctionCurrent, and xalanc::FunctionGenerateID.
|
virtual |
Execute an XPath function object.
The function must return a valid object. Extension functions should override this version of execute(), rather than one of the other calls designed for a specific number of arguments, since the extension function mechanism will call this version first. Extension functions that accept more than three arguments must override this version.
executionContext | executing context |
context | current context node |
args | vector of pointers to XObject arguments |
locator | Locator instance for the XPath expression that contains the function call |
Reimplemented in xalanc::XalanEXSLTFunctionTan, xalanc::XalanEXSLTFunctionSqrt, xalanc::XalanEXSLTFunctionSin, xalanc::XalanEXSLTFunctionPower, xalanc::XalanEXSLTFunctionMin, xalanc::XalanEXSLTFunctionMax, xalanc::XalanEXSLTFunctionLowest, xalanc::XalanEXSLTFunctionLog, xalanc::XalanEXSLTFunctionHighest, xalanc::XalanEXSLTFunctionExp, xalanc::XalanEXSLTFunctionCos, xalanc::XalanEXSLTFunctionConstant, xalanc::XalanEXSLTFunctionDecodeURI, xalanc::XalanEXSLTFunctionTrailing, xalanc::XalanEXSLTFunctionAtan2, xalanc::XalanEXSLTFunctionEncodeURI, xalanc::XalanEXSLTFunctionAtan, xalanc::XalanEXSLTFunctionLeading, xalanc::XalanEXSLTFunctionAsin, xalanc::XalanEXSLTFunctionPadding, xalanc::XalanEXSLTFunctionAcos, xalanc::XalanEXSLTFunctionHasSameNode, xalanc::XalanEXSLTFunctionObjectType, xalanc::XalanEXSLTFunctionConcat, xalanc::XalanEXSLTFunctionRandom, xalanc::FunctionNodeSet, xalanc::XalanEXSLTFunctionEvaluate, xalanc::XalanEXSLTFunctionAlign, xalanc::XalanEXSLTFunctionAbs, xalanc::FunctionEvaluate, xalanc::FunctionDifference, xalanc::FunctionDistinct, xalanc::FunctionHasSameNodes, xalanc::FunctionIntersection, xalanc::FunctionConcat, and xalanc::XalanEXSLTFunctionDateTime.
|
virtual |
Execute an XPath function object.
The function must return a valid object. Called if function has one parameter.
executionContext | executing context |
context | current context node |
arg | pointer to XObject argument |
locator | Locator instance for the XPath expression that contains the function call |
Reimplemented in xalanc::FunctionID, xalanc::FunctionNamespaceURI, xalanc::FunctionString, xalanc::FunctionLang, xalanc::FunctionNormalizeSpace, xalanc::FunctionGenerateID, xalanc::FunctionElementAvailable, xalanc::FunctionFunctionAvailable, xalanc::FunctionSystemProperty, xalanc::FunctionUnparsedEntityURI, and xalanc::FunctionDocument.
|
virtual |
Execute an XPath function object.
The function must return a valid object. Called if function has two parameters.
executionContext | executing context |
context | current context node |
arg1 | pointer to XObject argument |
arg2 | pointer to XObject argument |
locator | Locator instance for the XPath expression that contains the function call |
Reimplemented in xalanc::FunctionSubstring, xalanc::FunctionConcat, xalanc::FunctionDocument, xalanc::FunctionKey, xalanc::FunctionContains, xalanc::FunctionStartsWith, xalanc::FunctionSubstringAfter, xalanc::FunctionSubstringBefore, and xalanc::FunctionFormatNumber.
|
virtual |
Execute an XPath function object.
The function must return a valid object. Called if function has three parameters.
executionContext | executing context |
context | current context node |
arg1 | pointer to XObject arguments |
arg2 | pointer to XObject argument |
arg3 | pointer to XObject argument |
locator | Locator instance for the XPath expression that contains the function call |
Reimplemented in xalanc::FunctionSubstring, xalanc::FunctionConcat, xalanc::FunctionFormatNumber, and xalanc::FunctionTranslate.
|
protected |
Report the error returned from the getError() call.
executionContext | The current XPathExecutionContext |
context | The context node |
locator | The Locator instance for the XPath expression that contains the function call |
|
protectedpure virtual |
Get the error message to report when the function is called with the wrong number of arguments.
theBuffer | The XalanDOMString for the message. |
Implemented in xalanc::XalanEXSLTFunctionObjectType, xalanc::FunctionSubstring, xalanc::FunctionConcat, xalanc::FunctionID, xalanc::FunctionNamespaceURI, xalanc::FunctionString, xalanc::FunctionLang, xalanc::FunctionNormalizeSpace, xalanc::XalanEXSLTFunctionEvaluate, xalanc::FunctionNodeSet, xalanc::FunctionDocument, xalanc::FunctionGenerateID, xalanc::FunctionKey, xalanc::FunctionFunctionAvailable, xalanc::XalanEXSLTFunctionDateTime, xalanc::FunctionContains, xalanc::FunctionStartsWith, xalanc::FunctionSubstringAfter, xalanc::FunctionTranslate, xalanc::FunctionDifference, xalanc::FunctionDistinct, xalanc::FunctionEvaluate, xalanc::FunctionHasSameNodes, xalanc::FunctionIntersection, xalanc::FunctionSubstringBefore, xalanc::FunctionSystemProperty, xalanc::FunctionUnparsedEntityURI, xalanc::XalanEXSLTFunctionTan, xalanc::XalanEXSLTFunctionSqrt, xalanc::XalanEXSLTFunctionSin, xalanc::XalanEXSLTFunctionPower, xalanc::XalanEXSLTFunctionMin, xalanc::XalanEXSLTFunctionMax, xalanc::XalanEXSLTFunctionLowest, xalanc::XalanEXSLTFunctionLog, xalanc::XalanEXSLTFunctionHighest, xalanc::XalanEXSLTFunctionExp, xalanc::XalanEXSLTFunctionCos, xalanc::XalanEXSLTFunctionConstant, xalanc::XalanEXSLTFunctionDecodeURI, xalanc::XalanEXSLTFunctionTrailing, xalanc::XalanEXSLTFunctionAtan2, xalanc::XalanEXSLTFunctionEncodeURI, xalanc::XalanEXSLTFunctionAtan, xalanc::XalanEXSLTFunctionLeading, xalanc::XalanEXSLTFunctionAsin, xalanc::XalanEXSLTFunctionIntersection, xalanc::XalanEXSLTFunctionPadding, xalanc::XalanEXSLTFunctionAcos, xalanc::XalanEXSLTFunctionHasSameNode, xalanc::XalanEXSLTFunctionConcat, xalanc::XalanEXSLTFunctionRandom, xalanc::XalanEXSLTFunctionDistinct, xalanc::XalanEXSLTFunctionAlign, xalanc::XalanEXSLTFunctionAbs, xalanc::XalanEXSLTFunctionDifference, and xalanc::XalanEXSLTFunctionNodeSet.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:32 for Xalan-C++ API Reference by 1.8.17