|
|
@ -276,10 +276,13 @@ class Field implements Cloneable { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
/** |
|
|
|
public String toString() { |
|
|
|
* This method builds the full name of the field (with function, pointer and table indications). |
|
|
|
StringBuilder result = new StringBuilder(); |
|
|
|
* @return the full name of the field |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public String getFullName() { |
|
|
|
|
|
|
|
StringBuilder result = new StringBuilder(); |
|
|
|
if (function) { |
|
|
|
if (function) { |
|
|
|
result.append('('); |
|
|
|
result.append('('); |
|
|
|
} |
|
|
|
} |
|
|
@ -295,6 +298,14 @@ class Field implements Cloneable { |
|
|
|
if (function) { |
|
|
|
if (function) { |
|
|
|
result.append(")()"); |
|
|
|
result.append(")()"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return result.toString(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public String toString() { |
|
|
|
|
|
|
|
StringBuilder result = new StringBuilder(); |
|
|
|
|
|
|
|
result.append(this.getFullName()); |
|
|
|
|
|
|
|
|
|
|
|
//insert appropriate amount of spaces to format the output corrently
|
|
|
|
//insert appropriate amount of spaces to format the output corrently
|
|
|
|
int nameLength = result.length(); |
|
|
|
int nameLength = result.length(); |
|
|
|
result.append(' ');//at least one space is a must
|
|
|
|
result.append(' ');//at least one space is a must
|
|
|
|