* @param initialization the initialization
* @param sourceStart the start point
*/
- public ArgumentDeclaration(final char[] name,
+ public ArgumentDeclaration(final Variable name,
final boolean reference,
final Expression initialization,
final int sourceStart) {
* @param reference the variable is a reference ?
* @param sourceStart the start point
*/
- public ArgumentDeclaration(final char[] name,
+ public ArgumentDeclaration(final Variable name,
final boolean reference,
final int sourceStart) {
super(name, sourceStart);
public String toStringExpression() {
final StringBuffer buff;
if (reference) {
- buff = new StringBuffer("&$");
+ buff = new StringBuffer("&");
} else {
- buff = new StringBuffer("$");
+ buff = new StringBuffer();
}
- buff.append(name);
+ buff.append(variable.toStringExpression());
if (initialization != null) {
buff.append(" = ");
buff.append(initialization.toStringExpression());