KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > generics > ElementStructureEnvironment


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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  * Robert M. Fuhrer (rfuhrer@watson.ibm.com), IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.corext.refactoring.generics;
12
13 import java.util.LinkedHashMap JavaDoc;
14 import java.util.Map JavaDoc;
15
16 import org.eclipse.jdt.internal.corext.refactoring.generics.ParametricStructureComputer.ParametricStructure;
17 import org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ConstraintVariable2;
18
19 /*package*/ final class ElementStructureEnvironment {
20     private final Map JavaDoc/*<ConstraintVariable, IType>*/ fElemStructure;
21
22     public ElementStructureEnvironment(){
23         fElemStructure= new LinkedHashMap JavaDoc();
24     }
25     
26     public void setElemStructure(ConstraintVariable2 v, ParametricStructure t) {
27         fElemStructure.put(v, t);
28     }
29
30     public ParametricStructure elemStructure(ConstraintVariable2 v) {
31         return (ParametricStructure) fElemStructure.get(v);
32     }
33 }
34
Popular Tags