C# Class Onism.Cldr.Test.Utils.NaiveTokenRemover

Represents an object capable of removing descendant tokens of JToken in a similar way to how gitignore handles patterns. This naive implementation is used to test another algorithm.
Afficher le fichier Open project: pgolebiowski/onism-cldr Class Usage Examples

Méthodes publiques

Méthode Description
NaiveTokenRemover ( ) : System.Collections.Generic
Remove ( JToken root, PatternCollection patterns ) : void

Removes tokens from this JSON token using a collection of patterns. This naive algorithm marks all the affected leaves every time a pattern is evaluated.

Private Methods

Méthode Description
FindLeaves ( JToken token ) : IEnumerable
GetId ( JToken token ) : long

Method Details

NaiveTokenRemover() public méthode

public NaiveTokenRemover ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Remove() public méthode

Removes tokens from this JSON token using a collection of patterns. This naive algorithm marks all the affected leaves every time a pattern is evaluated.
public Remove ( JToken root, PatternCollection patterns ) : void
root JToken
patterns PatternCollection
Résultat void