1 19 20 package jode.type; 21 import jode.AssertError; 22 23 33 public class NullType extends ReferenceType { 34 public NullType() { 35 super(TC_NULL); 36 } 37 38 public Type getSubType() { 39 return this; 40 } 41 42 public Type createRangeType(ReferenceType bottomType) { 43 return tRange(bottomType, this); 44 } 45 46 53 public Type getGeneralizedType(Type type) { 54 if (type.typecode == TC_RANGE) 55 type = ((RangeType) type).getTop(); 56 return type; 57 } 58 59 65 public Type getSpecializedType(Type type) { 66 if (type.typecode == TC_RANGE) 67 type = ((RangeType) type).getBottom(); 68 return type; 69 } 70 71 public String toString() { 72 return "tNull"; 73 } 74 } 75 | Popular Tags |