* @param initialization the initialization
* @param sourceStart the start point
*/
- public ArgumentDeclaration(char[] name,
- boolean reference,
- Expression initialization,
- int sourceStart) {
- super(name, initialization, sourceStart);
+ public ArgumentDeclaration(final Variable name,
+ final boolean reference,
+ final Expression initialization,
+ final int sourceStart) {
+ super(name, initialization,VariableDeclaration.EQUAL, sourceStart);
this.reference = reference;
}
* @param reference the variable is a reference ?
* @param sourceStart the start point
*/
- public ArgumentDeclaration(char[] name,
- boolean reference,
- int sourceStart) {
+ public ArgumentDeclaration(final Variable name,
+ final boolean reference,
+ final int sourceStart) {
super(name, sourceStart);
this.reference = reference;
}
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());