C# Class SharpTAL.TemplateParser.ElementParser

Parses tokens into elements.
显示文件 Open project: lck/SharpTAL Class Usage Examples

Public Methods

Method Description
ElementParser ( IEnumerable stream, string>.Dictionary defaultNamespaces ) : System
Parse ( ) : IEnumerable

Private Methods

Method Description
Groupdict ( Regex r, Match m, Token token ) : object>.Dictionary
ParseToken ( Token token ) : Element
match_tag ( Token token ) : object>.Dictionary
parse_tag ( Token token, string>.Dictionary ns ) : object>.Dictionary
unpack_attributes ( object>.IEnumerable attributes, string>.IDictionary ns, string defaultNs ) : OrderedDictionary
update_namespace ( object>.IEnumerable attributes, string>.Dictionary ns ) : void
visit_cdata ( Token token ) : Element
visit_comment ( Token token ) : Element
visit_default ( Token token ) : Element
visit_empty_tag ( Token token ) : Element
visit_end_tag ( Token token ) : Element
visit_processing_instruction ( Token token ) : Element
visit_start_tag ( Token token ) : Element
visit_text ( Token token ) : Element

Method Details

ElementParser() public method

public ElementParser ( IEnumerable stream, string>.Dictionary defaultNamespaces ) : System
stream IEnumerable
defaultNamespaces string>.Dictionary
return System

Parse() public method

public Parse ( ) : IEnumerable
return IEnumerable