C# 클래스 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.
파일 보기 프로젝트 열기: pgolebiowski/onism-cldr 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
FindLeaves ( JToken token ) : IEnumerable
GetId ( JToken token ) : long

메소드 상세

NaiveTokenRemover() 공개 메소드

public NaiveTokenRemover ( ) : System.Collections.Generic
리턴 System.Collections.Generic

Remove() 공개 메소드

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
리턴 void