1 20 21 package soot.dava.internal.javaRep; 22 23 import soot.*; 24 import soot.jimple.*; 25 26 public class DStaticFieldRef extends StaticFieldRef 27 { 28 private boolean supressDeclaringClass; 29 30 public void toString( UnitPrinter up ) { 31 if( !supressDeclaringClass ) { 32 up.type( fieldRef.declaringClass().getType() ); 33 up.literal( "." ); 34 } 35 up.fieldRef( fieldRef ); 36 } 37 38 public DStaticFieldRef( SootFieldRef fieldRef, String myClassName) 39 { 40 super( fieldRef); 41 supressDeclaringClass = myClassName.equals( fieldRef.declaringClass().getName()); 42 } 43 44 public DStaticFieldRef( SootFieldRef fieldRef, boolean supressDeclaringClass) 45 { 46 super( fieldRef); 47 this.supressDeclaringClass = supressDeclaringClass; 48 } 49 50 public Object clone() 51 { 52 return new DStaticFieldRef( fieldRef, supressDeclaringClass); 53 } 54 } 55 | Popular Tags |