defaultFactory

A default Token factory that creates new instances of T for matches of this Lexeme, given the CharSequence which captures the Token (equal to Token.value).

This factory is used as a fallback when the LexemeMatch returned by match has a null factory property. Ergo, it must be implemented for all Lexemes where LexemeMatch.factory can be null, and is not required to be implemented for Lexemes which guarantee that LexemeMatch.factory is never null.

Throws

if not overridden for this particular Lexeme