Public Member Functions | Protected Member Functions | Protected Attributes

CDoctypeDeclToken Class Reference

This token is generated by the HTML and Expat tokenizers when they see the doctype declaration ("<!DOCTYPE ... >"). More...

#include <nsHTMLTokens.h>

Inheritance diagram for CDoctypeDeclToken:
Collaboration diagram for CDoctypeDeclToken:

List of all members.

Public Member Functions

 CDoctypeDeclToken (nsHTMLTag aTag=eHTMLTag_unknown)
 CDoctypeDeclToken (const nsAString &aString, nsHTMLTag aTag=eHTMLTag_unknown)
virtual nsresult Consume (PRUnichar aChar, nsScanner &aScanner, PRInt32 aMode)
 Causes token to consume data from given scanner.
virtual PRInt32 GetTokenType (void)
 Getter which retrieves type of token gess5/11/98.
virtual const nsSubstringGetStringValue (void)
 Retrieve string value of the token gess5/11/98.
virtual void SetStringValue (const nsAString &aStr)

Protected Member Functions

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

Protected Attributes

nsString_external mTextValue

Detailed Description

This token is generated by the HTML and Expat tokenizers when they see the doctype declaration ("<!DOCTYPE ... >").


Constructor & Destructor Documentation

CDoctypeDeclToken::CDoctypeDeclToken ( nsHTMLTag  aTag = eHTMLTag_unknown  ) 
CDoctypeDeclToken::CDoctypeDeclToken ( const nsAString aString,
nsHTMLTag  aTag = eHTMLTag_unknown 
)

Member Function Documentation

virtual nsresult CDoctypeDeclToken::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 const nsSubstring& CDoctypeDeclToken::GetStringValue ( void   )  [virtual]

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

Returns:
reference to string containing string value

Implements CToken.

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

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

Returns:
int containing token type

Reimplemented from CToken.

virtual void CDoctypeDeclToken::SetStringValue ( const nsAString aStr  )  [virtual]
virtual size_t CDoctypeDeclToken::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: