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

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