JMethod synthetic = program.createMethod(type.getSourceInfo().makeChild(
BuildDeclMapVisitor.class, "Synthetic constructor"),
"new".toCharArray(), type, type, false, true, true, false, false);
// new Foo() : Create the instance
JNewInstance newInstance = new JNewInstance(
type.getSourceInfo().makeChild(BuildDeclMapVisitor.class,
"new instance"), type);
// (new Foo()).Foo() : Invoke the constructor method on the instance
JMethodCall call = new JMethodCall(type.getSourceInfo().makeChild(