1 19 20 25 26 package soot; 27 28 import java.util.*; 29 30 35 36 public abstract class BodyTransformer extends Transformer 37 { 38 46 public final void transform(Body b, String phaseName, Map options) 47 { 48 if(!PhaseOptions.getBoolean(options, "enabled")) 49 return; 50 51 internalTransform(b, phaseName, options); 52 } 53 54 public final void transform(Body b, String phaseName) 55 { 56 HashMap dummyOptions = new HashMap(); 57 dummyOptions.put( "enabled", "true" ); 58 transform(b, phaseName, dummyOptions); 59 } 60 61 public final void transform(Body b) 62 { 63 transform(b, ""); 64 } 65 66 74 protected abstract void internalTransform(Body b, String phaseName, Map options); 75 76 } 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | Popular Tags |