Parser<T> Class

Summary

Strinken parser.
Assembly
Strinken.dll
Namespace
Strinken
Base Types
  • Object
graph TD Base0["Object"]-->Type Type["Parser<T>"] class Type type-node

Syntax

public sealed class Parser<T>

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Type Parameters

Name Description
T The type related to the parser.

Constructors

Name Summary
Parser() Initializes a new instance of the Parser<T> class.
Parser(bool) Initializes a new instance of the Parser<T> class.

Methods

Name Value Summary
AddFilter(IFilter) void
Add a filter to the list of filter.
AddParameterTag(IParameterTag) void
Add a parameter tag to the list of parameter tags.
AddTag(ITag<T>) void
Add a tag to the list of tags.
Compile(string) CompiledString
Compiles a string for a faster resolution time but without any modification allowed after.
GetFilters() IReadOnlyCollection<IFilter>
Gets the filters used by the parser.
GetParameterTags() IReadOnlyCollection<IParameterTag>
Gets the parameters tags used by the parser.
GetTags() IReadOnlyCollection<ITag<T>>
Gets the tags used by the parser.
Resolve(CompiledString, IEnumerable<T>) IEnumerable<string>
Resolves the compiled string.
Resolve(CompiledString, T) string
Resolves the compiled string.
Resolve(string, IEnumerable<T>) IEnumerable<string>
Resolves the input.
Resolve(string, T) string
Resolves the input.
Validate(string) ValidationResult
Validates an input.

Extension Methods

Name Value Summary
WithFilter<T>(IFilter) Parser<T>
Add a filter to the parser.
WithFilters<T>(IEnumerable<IFilter>) Parser<T>
Add filters to the parser.
WithParameterTag<T>(IParameterTag) Parser<T>
Add a parameter tag to the parser.
WithParameterTags<T>(IEnumerable<IParameterTag>) Parser<T>
Add parameter tags to the parser.
WithTag<T>(ITag<T>) Parser<T>
Add a tag to the parser.
WithTag<T>(string, string, Func<T, string>) Parser<T>
Add a tag to the parser.
WithTags<T>(IEnumerable<ITag<T>>) Parser<T>
Add tags to the parser.