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).

Esempio n. 1
0
		public virtual void  setTokenCreator(TokenCreator tokenCreator)
		{
			this.tokenCreator = tokenCreator;
		}
Esempio n. 2
0
 public virtual void  setTokenCreator(TokenCreator tokenCreator)
 {
     this.tokenCreator = tokenCreator;
 }
Esempio n. 3
0
		public virtual void  setTokenObjectClass(string cl)
		{
			this.tokenCreator = new ReflectionBasedTokenCreator(this, cl);
		}
Esempio n. 4
0
 public virtual void  setTokenObjectClass(string cl)
 {
     this.tokenCreator = new ReflectionBasedTokenCreator(this, cl);
 }