]> git.uio.no Git - ifi-stolz-refaktor.git/blob - case-study/jdt-after/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ArrayTypeVariable2.java
Case Study: adding data and statistics
[ifi-stolz-refaktor.git] / case-study / jdt-after / core refactoring / org / eclipse / jdt / internal / corext / refactoring / typeconstraints2 / ArrayTypeVariable2.java
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
7  *
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11
12 package org.eclipse.jdt.internal.corext.refactoring.typeconstraints2;
13
14 import org.eclipse.jdt.internal.corext.refactoring.generics.InferTypeArgumentsTCModel;
15 import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.ArrayType;
16
17 /**
18  * An ArrayTypeVariable2 is a ConstraintVariable which stands for an array type.
19  */
20 public class ArrayTypeVariable2 extends ConstraintVariable2 {
21
22         public ArrayTypeVariable2(ArrayType type) {
23                 super(type);
24         }
25
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() + ")");
31         }
32
33         // hashCode() and equals(..) not necessary (unique per construction)
34
35 }