1 11 package org.eclipse.jdt.internal.corext.refactoring.generics; 12 13 import java.util.LinkedHashMap ; 14 import java.util.Map ; 15 16 import org.eclipse.jdt.internal.corext.refactoring.generics.ParametricStructureComputer.ParametricStructure; 17 import org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ConstraintVariable2; 18 19 final class ElementStructureEnvironment { 20 private final Map fElemStructure; 21 22 public ElementStructureEnvironment(){ 23 fElemStructure= new LinkedHashMap (); 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 |