Public Member Functions | Protected Member Functions | Protected Attributes

CEndToken Class Reference

This declares end tokens, which always take the form </xxxx>. More...

#include <nsHTMLTokens.h>

Inheritance diagram for CEndToken:
Collaboration diagram for CEndToken:

List of all members.

Public Member Functions

 CEndToken (nsHTMLTag aTag)
 CEndToken (const nsAString &aString)
 CEndToken (const nsAString &aName, nsHTMLTag aTag)
virtual nsresult Consume (PRUnichar aChar, nsScanner &aScanner, PRInt32 aMode)
 Causes token to consume data from given scanner.
virtual PRInt32 GetTypeID (void)
 Getter which retrieves the current ordinal value for this token gess5/11/98.
virtual PRInt32 GetTokenType (void)
 Getter which retrieves type of token gess5/11/98.
virtual const nsSubstringGetStringValue ()
 Retrieve string value of the token gess5/11/98.
virtual void GetSource (nsString_external &anOutputString)
virtual void AppendSourceTo (nsAString &anOutputString)
 harishd 03/23/00

Protected Member Functions

virtual size_t SizeOf () const
 Returns the size of the token object.

Protected Attributes

nsString_external mTextValue

Detailed Description

This declares end tokens, which always take the form </xxxx>.

This class also knows how to consume related attributes.

gess 3/25/98


Constructor & Destructor Documentation

CEndToken::CEndToken ( nsHTMLTag  aTag  ) 
CEndToken::CEndToken ( const nsAString aString  ) 
CEndToken::CEndToken ( const nsAString aName,
nsHTMLTag  aTag 
)

Member Function Documentation

virtual void CEndToken::AppendSourceTo ( nsAString anOutputString  )  [virtual]

harishd 03/23/00

Returns:
reference to string containing string value

Reimplemented from CToken.

virtual nsresult CEndToken::Consume ( PRUnichar  aChar,
nsScanner &  aScanner,
PRInt32  aMode 
) [virtual]

Causes token to consume data from given scanner.

Note that behavior varies wildly between CToken subclasses. gess5/11/98

Parameters:
aChar -- most recent char consumed
aScanner -- input source where token should get data
Returns:
error code (0 means ok)

Reimplemented from CToken.

virtual void CEndToken::GetSource ( nsString_external anOutputString  )  [virtual]
virtual const nsSubstring& CEndToken::GetStringValue (  )  [virtual]

Retrieve string value of the token gess5/11/98.

Returns:
reference to string containing string value

Implements CToken.

virtual PRInt32 CEndToken::GetTokenType ( void   )  [virtual]

Getter which retrieves type of token gess5/11/98.

Returns:
int containing token type

Reimplemented from CToken.

virtual PRInt32 CEndToken::GetTypeID ( void   )  [virtual]

Getter which retrieves the current ordinal value for this token gess5/11/98.

Returns:
current ordinal value

Reimplemented from CToken.

virtual size_t CEndToken::SizeOf (  )  const [inline, protected, virtual]

Returns the size of the token object.

Implements CToken.


Member Data Documentation


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