1 19 20 25 26 package soot; 27 28 import java.util.*; 29 30 31 public abstract class SceneTransformer extends Transformer 32 { 33 34 public final void transform(String phaseName, Map options) 35 { 36 if (!PhaseOptions.getBoolean(options, "enabled")) 37 return; 38 39 internalTransform(phaseName, options); 40 } 41 public final void transform(String phaseName) 42 { 43 HashMap dummyOptions = new HashMap(); 44 dummyOptions.put( "enabled", "true" ); 45 transform(phaseName, dummyOptions); 46 } 47 48 public final void transform() 49 { 50 transform(""); 51 } 52 53 54 protected abstract void internalTransform(String phaseName, Map options); 55 56 } 57 | Popular Tags |