Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Member Functions | Protected Member Functions

XToken Class Reference

#include <XToken.hpp>

Inherits XObject.

Collaboration diagram for XToken:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

Definition at line 41 of file XToken.hpp.


Constructor & Destructor Documentation

XToken::XToken ( MemoryManager &  theMemoryManager  ) 

Create an XToken.

Parameters:
theMemoryManager The MemoryManager instance.
XToken::XToken ( const XalanDOMString theString,
double  theNumber,
MemoryManager &  theMemoryManager 
)

Create an XToken for string in the token queue.

Parameters:
theString The string data for the token. The instance will keep a point to this string, so it must be persistent.
theNumber The numeric data for the token. This must be consistent with the lexical value in theString.
theMemoryManager The MemoryManager instance.
XToken::XToken ( double  theNumber,
const XalanDOMString theString,
MemoryManager &  theMemoryManager 
)

Create an XToken for number in the token queue.

Parameters:
theNumber The numeric data for the token. This must be consistent with the lexical value in theString.
theString The string data for the token. The instance will keep a point to this string, so it must be persistent.
theMemoryManager The MemoryManager instance.
XToken::XToken ( const XToken theSource  ) 

Create an XToken from another one.

In most cases, the following copy constructor, which accepts an explicit MemoryManager instance, is recommended.

Parameters:
theSource The source XToken instance.
XToken::XToken ( const XToken theSource,
MemoryManager &  theMemoryManager 
)

Create an XToken from another one.

Parameters:
theSource The source XToken instance.
theMemoryManager The MemoryManager instance.
virtual XToken::~XToken (  )  [virtual]

Member Function Documentation

virtual bool XToken::boolean ( XPathExecutionContext executionContext  )  const [virtual]

Cast result object to a boolean.

Parameters:
executionContext The current XPathExecutionContext
Returns:
boolean value

Implements XObject.

bool XToken::boolean (  )  const [inline]

Definition at line 154 of file XToken.hpp.

virtual void XToken::dereferenced (  )  [protected, virtual]

Reimplemented from XObject.

virtual const XalanDOMString& XToken::getTypeString (  )  const [virtual]

Given a request type, return the equivalent string.

For diagnostic purposes.

Returns:
string for type

Implements XObject.

virtual double XToken::num ( XPathExecutionContext executionContext  )  const [virtual]

Cast result object to a number.

Parameters:
executionContext The current XPathExecutionContext
Returns:
numeric value

Reimplemented from XObject.

double XToken::num (  )  const [inline, virtual]

Cast result object to a number.

This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.

Returns:
numeric value

Reimplemented from XObject.

Definition at line 162 of file XToken.hpp.

XToken& XToken::operator= ( const XToken theRHS  )  [inline]

Definition at line 144 of file XToken.hpp.

virtual void XToken::ProcessXObjectTypeCallback ( XObjectTypeCallback theCallbackObject  )  [virtual]

Process a callback request for preferred type information.

Parameters:
theCallbackObject object to call back

Implements XObject.

virtual void XToken::ProcessXObjectTypeCallback ( XObjectTypeCallback theCallbackObject  )  const [virtual]

Process a callback request for preferred type information.

Parameters:
theCallbackObject object to call back

Implements XObject.

virtual void XToken::referenced (  )  [protected, virtual]

Reimplemented from XObject.

void XToken::set ( const XalanDOMString theString,
double  theNumber 
)

Set the instance as a string in the token queue.

Parameters:
theString The string data for the token. XToken will keep a point to this string, so it must be persistent.
theNumber The numeric data for the token. This must be consistent with the lexical value in theString.
void XToken::set ( double  theNumber,
const XalanDOMString theString 
)

Set the instance as a number in the token queue.

Parameters:
theNumber The numeric data for the token. This must be consistent with the lexical value in theString.
theString The string data for the token. XToken will keep a point to this string, so it must be persistent.
virtual void XToken::str ( FormatterListener formatterListener,
MemberFunctionPtr  function 
) const [virtual]

Send the string value to a FormatterListener instance.

This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.

Parameters:
formatterListener The FormatterListener instance
function A pointer to the member function of FormatterListener to call

Implements XObject.

virtual void XToken::str ( XPathExecutionContext executionContext,
XalanDOMString theBuffer 
) const [virtual]

Append the string value directly a string.

Parameters:
executionContext The current XPathExecutionContext
theBuffer The buffer for the data

Implements XObject.

virtual void XToken::str ( XalanDOMString theBuffer  )  const [virtual]

Append the string value directly a string.

This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.

Parameters:
theBuffer The buffer for the data

Implements XObject.

virtual const XalanDOMString& XToken::str ( XPathExecutionContext executionContext  )  const [virtual]

Cast result object to a string.

Parameters:
executionContext The current XPathExecutionContext
Returns:
string value

Implements XObject.

virtual const XalanDOMString& XToken::str (  )  const [virtual]

Cast result object to a string.

This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.

Parameters:
executionContext The current XPathExecutionContext
Returns:
string value

Implements XObject.

virtual void XToken::str ( XPathExecutionContext executionContext,
FormatterListener formatterListener,
MemberFunctionPtr  function 
) const [virtual]

Send the string value to a FormatterListener instance.

Parameters:
executionContext The current XPathExecutionContext
formatterListener The FormatterListener instance
function A pointer to the member function of FormatterListener to call

Implements XObject.

virtual double XToken::stringLength ( XPathExecutionContext executionContext  )  const [virtual]

Get the length of the string value of the instance.

Returns:
The length of the string value

Implements XObject.

double XToken::stringLength (  )  const [inline]

Definition at line 170 of file XToken.hpp.


The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo