A creator of Token object instances.

This class and it's sub-classes exists primarily as an optimization of the reflection-based mechanism(s) previously used exclusively to create instances of Token objects.

Since Lexers in ANTLR use a single Token type, each TokenCreator can create one class of Token objects (that's why it's not called TokenFactory).

コード例 #1
0
ファイル: CharScanner.cs プロジェクト: fgq841103/spring-net
		public virtual void  setTokenCreator(TokenCreator tokenCreator)
		{
			this.tokenCreator = tokenCreator;
		}
コード例 #2
0
 public virtual void  setTokenCreator(TokenCreator tokenCreator)
 {
     this.tokenCreator = tokenCreator;
 }
コード例 #3
0
ファイル: CharScanner.cs プロジェクト: fgq841103/spring-net
		public virtual void  setTokenObjectClass(string cl)
		{
			this.tokenCreator = new ReflectionBasedTokenCreator(this, cl);
		}
コード例 #4
0
 public virtual void  setTokenObjectClass(string cl)
 {
     this.tokenCreator = new ReflectionBasedTokenCreator(this, cl);
 }