--- /dev/null
+package net.sourceforge.phpdt.internal.compiler.ast;
+
+/**
+ * a class instantiation.
+ * @author Matthieu Casanova
+ */
+public class ClassInstantiation extends PrefixedUnaryExpression {
+
+ private boolean reference;
+
+ public ClassInstantiation(final Expression expression,
+ final boolean reference,
+ final int sourceStart) {
+ super(expression, OperatorIds.NEW, sourceStart);
+ this.reference = reference;
+ }
+
+ public String toStringExpression() {
+ if (!reference) {
+ return super.toStringExpression();
+ }
+ return "&"+super.toStringExpression();
+ }
+}