constructor.setName(ast.newSimpleName(clazz.getName()));
constructor.modifiers().add(
ast.newModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD));
for (int index = 0; index < varTypes.length; index++) {
SingleVariableDeclaration variableDeclaration = ast
.newSingleVariableDeclaration();
variableDeclaration.setType(ast.newSimpleType(ast
.newSimpleName(varTypes[index])));
variableDeclaration.setName(ast.newSimpleName(varNames[index]));
constructor.parameters().add(variableDeclaration);
}
Block block = ast.newBlock();
SuperConstructorInvocation constructorInvocation = ast