1 package net.sourceforge.phpdt.internal.compiler.ast;
5 * An argument declaration.
6 * @author Matthieu Casanova
8 public class ArgumentDeclaration extends VariableDeclaration {
10 /** The argument is a reference or not. */
11 public boolean reference;
15 * @param name the name
16 * @param reference the variable is a reference ?
17 * @param initialization the initialization
18 * @param sourceStart the start point
20 public ArgumentDeclaration(char[] name,
22 Expression initialization,
24 super(name, initialization, sourceStart);
25 this.reference = reference;
30 * @param name the name
31 * @param reference the variable is a reference ?
32 * @param sourceStart the start point
34 public ArgumentDeclaration(char[] name,
37 super(name, sourceStart);
38 this.reference = reference;
41 * Return the expression as String.
42 * @return the expression
44 public String toStringExpression() {
45 final StringBuffer buff;
47 buff = new StringBuffer("&$");
49 buff = new StringBuffer("$");
52 if (initialization != null) {
54 buff.append(initialization.toStringExpression());
56 return buff.toString();