Sadly, it doesn't look like constructor syntax can be used
for multi-word types in C++, so "return long long();" from
the template won't compile, but oh well. The return statement
is meant to be replaced anyway.
see #32
// Set up the terms used for the template expansion.
HashMap<String,String> terms = new HashMap<String,String>();
// Set up the terms used for the template expansion.
HashMap<String,String> terms = new HashMap<String,String>();
- terms.put("RETURNTYPE", component.getReturnType().getDescriptor(language).replaceAll("\\s+", ""));
+ terms.put("RETURNTYPE", component.getReturnType().getDescriptor(language));
terms.put("CLASSNAME", name);
terms.put("METHODNAME", component.getMethodName());
terms.put("METHODPARAMS", getMethodParams(component.getParamTypes(),
terms.put("CLASSNAME", name);
terms.put("METHODNAME", component.getMethodName());
terms.put("METHODPARAMS", getMethodParams(component.getParamTypes(),
String[] strings = new String[types.length];
for (int i = 0; i < types.length; ++i)
{
String[] strings = new String[types.length];
for (int i = 0; i < types.length; ++i)
{
- strings[i] = types[i].getDescriptor(language).replaceAll("\\s+", "");
+ strings[i] = types[i].getDescriptor(language);