// Add tokenizer factory method
method = new CSharpMethod(CSharpMethod.PROTECTED + CSharpMethod.OVERRIDE,
"NewTokenizer",
"TextReader input",
"Tokenizer");
method.addComment(new CSharpComment(FACTORY_COMMENT));
method.addCode("return new " + tokenizer.getClassName() + "(input);");
cls.addMethod(method);
// Add init method
cls.addMethod(initMethod);