Community
Participate
Working Groups
{
char []name={};
for (int j = 0; j < param.types.length; j++) {
char []typeName=param.types[j].getSimpleTypeName();
//changePrimitiveToObject just changes the first character of a primitive name to upper case.
char []typeName=changePrimitiveToObject(param.types[j].getSimpleTypeName());
if (j==0)
name=typeName;
else
}
public char[] changePrimitiveToObject(char[] name) {
//Changes the first character of the name of the primitive types to uppercase. This will allow future reference to the object wrapper instead of the primitive type.
String type = String.valueOf(name);
if(type.equals("int") || type.equals("boolean") || type.equals("char") || type.equals("double")|| type.equals("float") || type.equals("long") || type.equals("short"))
name[0] = Character.toUpperCase(name[0]);
return name;
public boolean visit(
IAllocationExpression allocationExpression) {