18#if !defined(XTOKEN_HEADER_GUARD_1357924680)
19#define XTOKEN_HEADER_GUARD_1357924680
119 MemberFunctionPtr function)
const;
124 MemberFunctionPtr function)
const;
146 m_stringValue =
theRHS.m_stringValue;
148 m_numberValue =
theRHS.m_numberValue;
156 assert(m_stringValue != 0);
158 return m_isString ==
true ? XObject::boolean(*m_stringValue) : XObject::boolean(m_numberValue);
164 assert(m_stringValue != 0);
166 return m_numberValue;
172 assert(m_stringValue != 0);
174 return static_cast<double>(m_stringValue->length());
216 double m_numberValue;
#define XALAN_XPATH_EXPORT
#define XALAN_USES_MEMORY_MANAGER(Type)
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XOb...
Class to hold XPath return types.
virtual double num(XPathExecutionContext &executionContext) const
Cast result object to a number.
virtual const XalanDOMString & getTypeString() const
Given a request type, return the equivalent string.
void set(const XalanDOMString &theString, double theNumber)
Set the instance as a string in the token queue.
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject)
Process a callback request for preferred type information.
XToken & operator=(const XToken &theRHS)
virtual void str(XalanDOMString &theBuffer) const
Append the string value directly a string.
virtual void str(XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
Send the string value to a FormatterListener instance.
virtual void dereferenced()
XToken(const XToken &theSource, MemoryManager &theMemoryManager)
Create an XToken from another one.
virtual void str(XPathExecutionContext &executionContext, XalanDOMString &theBuffer) const
Append the string value directly a string.
XToken(MemoryManager &theMemoryManager)
Create an XToken.
XToken(const XalanDOMString &theString, double theNumber, MemoryManager &theMemoryManager)
Create an XToken for string in the token queue.
virtual bool boolean(XPathExecutionContext &executionContext) const
Cast result object to a boolean.
void set(double theNumber, const XalanDOMString &theString)
Set the instance as a number in the token queue.
virtual void referenced()
virtual const XalanDOMString & str(XPathExecutionContext &executionContext) const
Cast result object to a string.
XToken(double theNumber, const XalanDOMString &theString, MemoryManager &theMemoryManager)
Create an XToken for number in the token queue.
XToken(const XToken &theSource)
Create an XToken from another one.
virtual void str(FormatterListener &formatterListener, MemberFunctionPtr function) const
Send the string value to a FormatterListener instance.
double num() const
Cast result object to a number.
virtual const XalanDOMString & str() const
Cast result object to a string.
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject) const
Process a callback request for preferred type information.
double stringLength() const
virtual double stringLength(XPathExecutionContext &executionContext) const
Get the length of the string value of the instance.
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)