Inheritance: BaseTokenStreamTestCase
Esempio n. 1
0
 private void InitBlock(TestTeeSinkTokenFilter enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Esempio n. 2
0
 internal ModuloSinkFilter(TestTeeSinkTokenFilter enclosingInstance, int mc)
 {
     InitBlock(enclosingInstance);
     modCount = mc;
 }
Esempio n. 3
0
 internal ModuloTokenFilter(TestTeeSinkTokenFilter enclosingInstance, TokenStream input, int mc)
     : base(input)
 {
     InitBlock(enclosingInstance);
     modCount = mc;
 }
            internal ModuloSinkFilter(TestTeeSinkTokenFilter enclosingInstance, int mc)
			{
                Accept = (a) =>
                {
                    bool b = (a != null && count % modCount == 0);
                    count++;
                    return b;
                };
                InitBlock(enclosingInstance);
				modCount = mc;
			}
			private void  InitBlock(TestTeeSinkTokenFilter enclosingInstance)
			{
				this.enclosingInstance = enclosingInstance;
			}
			internal ModuloTokenFilter(TestTeeSinkTokenFilter enclosingInstance, TokenStream input, int mc):base(input)
			{
				InitBlock(enclosingInstance);
				modCount = mc;
			}
 internal ModuloSinkFilter(TestTeeSinkTokenFilter enclosingInstance, int mc)
 {
     InitBlock(enclosingInstance);
     modCount = mc;
 }