1 19 20 25 26 27 28 29 30 package soot; 31 import soot.*; 32 33 import soot.util.*; 34 import java.util.*; 35 36 40 public class UnknownType extends Type 41 { 42 public UnknownType( Singletons.Global g ) {} 43 public static UnknownType v() { return G.v().soot_UnknownType(); } 44 45 public int hashCode() 46 { 47 return 0x5CAE5357; 48 } 49 50 public boolean equals(Object t) 51 { 52 return this == t; 53 } 54 55 public String toString() 56 { 57 return ".unknown"; 58 } 59 60 public void apply(Switch sw) 61 { 62 ((TypeSwitch) sw).caseUnknownType(this); 63 } 64 65 66 public Type merge(Type other, Scene cm) 67 { 68 if (other instanceof RefType) 69 return other; 70 throw new RuntimeException ("illegal type merge: " 71 + this + " and " + other); 72 } 73 } 74 | Popular Tags |