1 sharedlibrarycoreinterfaces ParserRegex
RaidMax edited this page 2023-05-20 22:09:21 -05:00

ParserRegex Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SharedLibraryCore.Interfaces
  SharedLibraryCore.Interfaces.ParserRegex[[ParserRegex]]
  end

Members

Properties

Public properties

Type Name Methods
Dictionary<GroupType, int> GroupMapping
stores the mapping from group type to group index in the regular expression
get
string Pattern
stores the regular expression groups that will be mapped to group types
get, set
IParserPatternMatcher PatternMatcher get

Methods

Public methods

Returns Name
void AddMapping(object mapKey, object mapValue)
helper method to enable script parsers to app regex mapping
the first parameter specifies the group type contained in the regex pattern
the second parameter specifies the group index to retrieve in the matched regex pattern

Details

Nested types

Enums

  • GroupType

Constructors

ParserRegex

Source code

public ParserRegex(IParserPatternMatcher pattern)
Arguments
Type Name Description
IParserPatternMatcher pattern

Methods

AddMapping

Source code

public void AddMapping(object mapKey, object mapValue)
Arguments
Type Name Description
object mapKey group type
object mapValue group index
Summary

helper method to enable script parsers to app regex mapping the first parameter specifies the group type contained in the regex pattern the second parameter specifies the group index to retrieve in the matched regex pattern

Properties

PatternMatcher

public IParserPatternMatcher PatternMatcher { get; }

Pattern

public string Pattern { get; set; }
Summary

stores the regular expression groups that will be mapped to group types

GroupMapping

public Dictionary<GroupType, int> GroupMapping { get; }
Summary

stores the mapping from group type to group index in the regular expression

Generated with ModularDoc