1 package net.sourceforge.phpdt.internal.compiler.ast;
5 * An argument declaration.
6 * @author Matthieu Casanova
8 public class ArgumentDeclaration extends VariableDeclaration {
10 public boolean reference;
14 * @param name the name
15 * @param reference the variable is a reference ?
16 * @param initialization the initialization
17 * @param sourceStart the start point
19 public ArgumentDeclaration(char[] name,
21 Expression initialization,
23 super(name, initialization, sourceStart);
24 this.reference = reference;
29 * @param name the name
30 * @param reference the variable is a reference ?
31 * @param sourceStart the start point
33 public ArgumentDeclaration(char[] name,
36 super(name, sourceStart);
37 this.reference = reference;
40 * Return the expression as String.
41 * @return the expression
43 public String toStringExpression() {
44 final StringBuffer buff;
46 buff = new StringBuffer("&$");
48 buff = new StringBuffer("$");
51 if (initialization != null) {
53 buff.append(initialization.toStringExpression());
55 return buff.toString();