Design Pattern Examples
Overview of object-oriented design patterns
State_DoubleQuotedText Class Reference

Represents being inside a double-quote string where filtering is essentially turned off until the end of the string is reached. More...

Inheritance diagram for State_DoubleQuotedText:
Inheritance graph
Collaboration diagram for State_DoubleQuotedText:
Collaboration graph

Private Member Functions

CurrentState IStateBehavior. GoNext (IStateContext context)
 Process the next character from the context, returning the next state the context should move to.
 

Additional Inherited Members

CurrentState GoNext (IStateContext context)
 

Detailed Description

Represents being inside a double-quote string where filtering is essentially turned off until the end of the string is reached.

Transitions to the following states for the seen input: " - go to CurrentState.NormalText (end of a double-quoted string) \ - go to CurrentState.EscapedDoubleQuoteText (start of an escaped character) EOF - go to CurrentState.Done (no more input)

Definition at line 178 of file State_Class.cs.

Member Function Documentation

◆ GoNext()

CurrentState IStateBehavior. GoNext ( IStateContext  context)
inlineprivate

Process the next character from the context, returning the next state the context should move to.

Parameters
contextAn IStateContext object representing the context to use for getting the next character of input and to which to output characters.
Returns
Returns a value from the CurrentState enumeration indicating the next state to which the state machine should transition to.

Implements IStateBehavior.

Definition at line 189 of file State_Class.cs.

References State_Constants.EOF, IStateContext.GetNextCharacter(), and IStateContext.OutputCharacter().


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