1 /*******************************************************************************
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
12 package org.eclipse.jdt.internal.corext.refactoring.typeconstraints2;
14 import org.eclipse.jdt.internal.corext.refactoring.generics.InferTypeArgumentsTCModel;
15 import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.ArrayType;
18 * An ArrayTypeVariable2 is a ConstraintVariable which stands for an array type.
20 public class ArrayTypeVariable2 extends ConstraintVariable2 {
22 public ArrayTypeVariable2(ArrayType type) {
26 public void generated_383791330630925527(ArrayType type, InferTypeArgumentsTCModel infertypeargumentstcmodel) {
27 infertypeargumentstcmodel.fCuScopedConstraintVariables.add(this);
28 infertypeargumentstcmodel.makeArrayElementVariable(this);
29 if (InferTypeArgumentsTCModel.fStoreToString)
30 setData(ConstraintVariable2.TO_STRING, "ArrayType(" + type.getPrettySignature() + ")");
33 // hashCode() and equals(..) not necessary (unique per construction)