1 package polyglot.ext.coffer.types; 2 3 import polyglot.types.*; 4 import polyglot.ext.jl.types.*; 5 import polyglot.ext.param.types.*; 6 import polyglot.frontend.Source; 7 import java.util.*; 8 9 public class CofferParsedClassType_c extends ParsedClassType_c 10 implements CofferParsedClassType 11 { 12 PClass instantiatedFrom; 13 Key key; 14 15 public CofferParsedClassType_c(TypeSystem ts, LazyClassInitializer init, 16 Source fromSource) { 17 super(ts, init, fromSource); 18 } 19 20 public PClass instantiatedFrom() { 21 return instantiatedFrom; 22 } 23 24 public void setInstantiatedFrom(PClass pc) { 25 this.instantiatedFrom = pc; 26 } 27 28 public List actuals() { 29 if (key != null) { 30 return Collections.singletonList(key); 31 } 32 else { 33 return Collections.EMPTY_LIST; 34 } 35 } 36 37 public Key key() { 38 return key; 39 } 40 41 public void setKey(Key key) { 42 this.key = key; 43 } 44 } 45 | Popular Tags |