List<Attribute> attrs = ra.parameterScope.getAttributes();
assertEquals("attribute mismatch","HashMap<String,String> foo",attrs.get(0).decl.toString());
assertEquals("parameter name mismatch","foo",attrs.get(0).name);
assertEquals("declarator mismatch", "HashMap<String,String>", attrs.get(0).type);
Tool antlr = newTool();
CodeGenerator generator = new CodeGenerator(antlr, g, "Java");
g.setCodeGenerator(generator);
generator.genRecognizer(); // forces load of templates
ActionTranslator translator = new ActionTranslator(generator,"a",
new CommonToken(ANTLRParser.ACTION,action),1);