C# Class Transformer.NET.TextTransformer

Inheritance: ITextTransformer
Datei anzeigen Open project: extnet/Transformer.NET

Public Methods

Method Description
Handle ( ) : void
ID ( string prefix ) : string
Parse ( ) : List
Parse ( string>.Dictionary variables ) : List
Parse ( List tokensType ) : List
Parse ( List tokensType, string>.Dictionary variables ) : List
TextTransformer ( string text ) : System
TextTransformer ( string text, TextTransformerConfig config ) : System
ToString ( ) : string
Transform ( ) : string
Transform ( string>.Dictionary variables ) : string
Transform ( List tokensType ) : string
Transform ( List tokensType, string>.Dictionary variables ) : string
Transform ( string text ) : string
Transform ( string text, string>.Dictionary variables ) : string
Transform ( string text, List tokensType ) : string
Transform ( string text, List tokensType, string>.Dictionary variables ) : string
Transform ( string text, TextTransformerConfig config ) : string

Protected Methods

Method Description
ApplyConfig ( TextTransformerConfig config ) : void
CreateToken ( string tagName, Match match ) : Token
GroupReferences ( ) : void
HandleSelectorTokens ( List selectorTokens ) : void
InitTagsMap ( ) : void
OnAfterParse ( string text ) : string
OnAfterVariablesReplacing ( string text ) : string
OnBeforeParse ( string text ) : string
OnBeforeVariablesReplacing ( string text ) : string
OnTokenMatch ( Token token ) : void
OnVariableMatch ( string text, string variable, string>.Dictionary variables ) : string

Method Details

ApplyConfig() protected method

protected ApplyConfig ( TextTransformerConfig config ) : void
config TextTransformerConfig
return void

CreateToken() protected method

protected CreateToken ( string tagName, Match match ) : Token
tagName string
match System.Text.RegularExpressions.Match
return Token

GroupReferences() protected method

protected GroupReferences ( ) : void
return void

Handle() public method

public Handle ( ) : void
return void

HandleSelectorTokens() protected method

protected HandleSelectorTokens ( List selectorTokens ) : void
selectorTokens List
return void

ID() public method

public ID ( string prefix ) : string
prefix string
return string

InitTagsMap() protected method

protected InitTagsMap ( ) : void
return void

OnAfterParse() protected method

protected OnAfterParse ( string text ) : string
text string
return string

OnAfterVariablesReplacing() protected method

protected OnAfterVariablesReplacing ( string text ) : string
text string
return string

OnBeforeParse() protected method

protected OnBeforeParse ( string text ) : string
text string
return string

OnBeforeVariablesReplacing() protected method

protected OnBeforeVariablesReplacing ( string text ) : string
text string
return string

OnTokenMatch() protected method

protected OnTokenMatch ( Token token ) : void
token Token
return void

OnVariableMatch() protected method

protected OnVariableMatch ( string text, string variable, string>.Dictionary variables ) : string
text string
variable string
variables string>.Dictionary
return string

Parse() public method

public Parse ( ) : List
return List

Parse() public method

public Parse ( string>.Dictionary variables ) : List
variables string>.Dictionary
return List

Parse() public method

public Parse ( List tokensType ) : List
tokensType List
return List

Parse() public method

public Parse ( List tokensType, string>.Dictionary variables ) : List
tokensType List
variables string>.Dictionary
return List

TextTransformer() public method

public TextTransformer ( string text ) : System
text string
return System

TextTransformer() public method

public TextTransformer ( string text, TextTransformerConfig config ) : System
text string
config TextTransformerConfig
return System

ToString() public method

public ToString ( ) : string
return string

Transform() public method

public Transform ( ) : string
return string

Transform() public method

public Transform ( string>.Dictionary variables ) : string
variables string>.Dictionary
return string

Transform() public method

public Transform ( List tokensType ) : string
tokensType List
return string

Transform() public method

public Transform ( List tokensType, string>.Dictionary variables ) : string
tokensType List
variables string>.Dictionary
return string

Transform() public static method

public static Transform ( string text ) : string
text string
return string

Transform() public static method

public static Transform ( string text, string>.Dictionary variables ) : string
text string
variables string>.Dictionary
return string

Transform() public static method

public static Transform ( string text, List tokensType ) : string
text string
tokensType List
return string

Transform() public static method

public static Transform ( string text, List tokensType, string>.Dictionary variables ) : string
text string
tokensType List
variables string>.Dictionary
return string

Transform() public static method

public static Transform ( string text, TextTransformerConfig config ) : string
text string
config TextTransformerConfig
return string