1 package polyglot.ext.pao.types; 2 3 import polyglot.ext.jl.types.ParsedClassType_c; 4 import polyglot.frontend.Source; 5 import polyglot.types.LazyClassInitializer; 6 import polyglot.types.Type; 7 import polyglot.types.TypeSystem; 8 9 14 public class PaoParsedClassType_c extends ParsedClassType_c { 15 protected PaoParsedClassType_c() { 16 super(); 17 } 18 19 public PaoParsedClassType_c(TypeSystem ts, LazyClassInitializer init, 20 Source fromSource) { 21 super(ts, init, fromSource); 22 } 23 24 31 public boolean isCastValidImpl(Type toType) { 32 return toType.isPrimitive() && ts.equals(this, ts.Object()) 33 || super.isCastValidImpl(toType); 34 } 35 } | Popular Tags |