Design Pattern Examples
Overview of object-oriented design patterns
IStateContext Interface Reference

Represents the context as passed to each state class. More...

Inheritance diagram for IStateContext:
Inheritance graph
Collaboration diagram for IStateContext:
Collaboration graph

Public Member Functions

char GetNextCharacter ()
 Get the next character from the input.
 
void OutputCharacter (char character)
 Write the character to the context. This is how the parser accumulates the filtered text.
 

Detailed Description

Represents the context as passed to each state class.

Each state class can access the next character or output the current character through this interface.

Definition at line 65 of file State_Class.cs.

Member Function Documentation

◆ GetNextCharacter()

char GetNextCharacter ( )

◆ OutputCharacter()

void OutputCharacter ( char  character)

Write the character to the context. This is how the parser accumulates the filtered text.

Parameters
characterThe character to accumulate

Implemented in StateContext_Class.

Referenced by State_NormalText.GoNext(), State_DoubleQuotedText.GoNext(), State_SingleQuotedText.GoNext(), State_EscapedDoubleQuoteText.GoNext(), State_EscapedSingleQuoteText.GoNext(), State_StartComment.GoNext(), and State_LineComment.GoNext().


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