IGLib  1.5
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext Class Reference
+ Collaboration diagram for JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext:

Public Member Functions

void PrettyPrintCharacter (char curChar, StringBuilder output)
 
void AppendCurrentChar ()
 
void AppendNewLine ()
 
void BuildContextIndents ()
 
void EnterObjectScope ()
 
void CloseCurrentScope ()
 
void EnterArrayScope ()
 
void AppendSpace ()
 
void ClearStrategies ()
 
void AddCharacterStrategy (ICharacterStrategy strategy)
 

Public Attributes

int SpacesPerIndent = 4
 
bool IsProcessingVariableAssignment
 

Properties

string Indent [get]
 
bool IsInArrayScope [get]
 
bool IsProcessingDoubleQuoteInitiatedString [get, set]
 
bool IsProcessingSingleQuoteInitiatedString [get, set]
 
bool IsProcessingString [get]
 
bool IsStart [get]
 
bool WasLastCharacterABackSlash [get]
 

Private Member Functions

void InitializeIndent ()
 
void AppendIndents (int indents)
 

Private Attributes

const string Space = " "
 
string _indent = string.Empty
 
readonly PPScopeState _scopeState = new PPScopeState()
 
char _previousChar
 
readonly IDictionary< char,
ICharacterStrategy
_strategyCatalog = new Dictionary<char, ICharacterStrategy>()
 
StringBuilder _outputBuilder
 
char _currentCharacter
 

Member Function Documentation

void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.InitializeIndent ( )
inlineprivate
void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.AppendIndents ( int  indents)
inlineprivate
void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.PrettyPrintCharacter ( char  curChar,
StringBuilder  output 
)
inline
void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.AppendNewLine ( )
inline
void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.EnterObjectScope ( )
inline
void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.EnterArrayScope ( )
inline
void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.AppendSpace ( )
inline
void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.ClearStrategies ( )
inline
void JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.AddCharacterStrategy ( ICharacterStrategy  strategy)
inline

Member Data Documentation

const string JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.Space = " "
private
int JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.SpacesPerIndent = 4
string JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext._indent = string.Empty
private
readonly PPScopeState JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext._scopeState = new PPScopeState()
private
char JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext._previousChar
private
readonly IDictionary<char, ICharacterStrategy> JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext._strategyCatalog = new Dictionary<char, ICharacterStrategy>()
private
StringBuilder JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext._outputBuilder
private
char JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext._currentCharacter
private

Property Documentation

string JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.Indent
get
bool JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.IsInArrayScope
get
bool JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.IsProcessingDoubleQuoteInitiatedString
getset
bool JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.IsProcessingSingleQuoteInitiatedString
getset
bool JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.IsStart
get

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