public TemplateToken(TemplateTokenType type, int position, int lineNumber, string token) { Type = type; Position = position; LineNumber = lineNumber; Token = token; }
public TemplateTokenMatcher(ITokenMatcher tokenMatcher, TemplateTokenType tokenType, bool removeEmptyLine, string tokenId) { _tokenMatcher = tokenMatcher; _removeEmptyLine = removeEmptyLine; _tokenId = tokenId; _tokenType = tokenType; }
public TemplateTokenMatcher(ITokenMatcher tokenMatcher, TemplateTokenType tokenType, bool removeEmptyLine, string tokenId) { _tokenMatcher = tokenMatcher; _removeEmptyLine = removeEmptyLine; _tokenId = tokenId; _tokenType = tokenType; }
public TemplateToken(string regex, TemplateTokenType tokenType, bool removeEmptyLine, string tokenId) { Regex = regex; TokenType = tokenType; RemoveEmptyLine = removeEmptyLine; TokenId = tokenId; }
public TokenMatch(Regex regex, Match match, TemplateTokenType tokenType, bool removeEmptyLine, string tokenId) { _TokenType = tokenType; _TokenId = tokenId; _Match = match; _RemoveEmptyLine = removeEmptyLine; #region _SubMatches = { ... } Group group = null; foreach (string groupName in regex.GetGroupNames()) { group = match.Groups[groupName]; if (group.Success) { _SubMatches[groupName] = group.Value; } } #endregion }
public TemplateToken(TemplateTokenType type, string value) { Type = type; Value = value; }
public void AddTokenMatcher(TemplateTokenType templateTokenType, ITokenMatcher tokenMatcher, string tokenId) { AddTokenMatcher(new TemplateTokenMatcher(tokenMatcher, templateTokenType, false, tokenId)); }
public void AddTokenMatcher(TemplateTokenType templateTokenType, ITokenMatcher tokenMatcher, bool removeEmptyLine) { AddTokenMatcher(new TemplateTokenMatcher(tokenMatcher, templateTokenType, removeEmptyLine, null)); }
public void AddTokenMatcher(TemplateTokenType templateTokenType, ITokenMatcher tokenMatcher) { AddTokenMatcher(new TemplateTokenMatcher(tokenMatcher, templateTokenType, false, null)); }
public void AddTokenMatcher(TemplateTokenType templateTokenType, ITokenMatcher tokenMatcher, bool removeEmptyLine, string tokenId) { AddTokenMatcher(new TemplateTokenMatcher(tokenMatcher, templateTokenType, removeEmptyLine, tokenId)); }
public TemplateToken(TemplateTokenType type, string value) { Type = type; Value = value; }
public void AddToken(TemplateTokenType tokenType, string regex, bool stripEmptyLine, string tokenId) { _TokenList.Add(new TemplateToken(regex, tokenType, stripEmptyLine, tokenId)); }
public void AddToken(TemplateTokenType tokenType, string regex, bool stripEmptyLine) { AddToken(tokenType, regex, stripEmptyLine, null); }