1 19 20 25 26 27 28 29 30 package soot.jimple; 31 32 import soot.*; 33 import soot.util.*; 34 import java.util.*; 35 36 public class NullConstant extends Constant 37 { 38 public NullConstant( Singletons.Global g ) {} 39 public static NullConstant v() { return G.v().soot_jimple_NullConstant(); } 40 41 public boolean equals(Object c) 42 { 43 return c == G.v().soot_jimple_NullConstant(); 44 } 45 46 public int hashCode() 47 { 48 return 982; 49 } 50 51 public String toString() 52 { 53 return Jimple.NULL; 54 } 55 56 public Type getType() 57 { 58 return NullType.v(); 59 } 60 61 public void apply(Switch sw) 62 { 63 ((ConstantSwitch) sw).caseNullConstant(this); 64 } 65 } 66 | Popular Tags |