1 19 20 23 24 30 31 32 package soot.dava.toolkits.base.AST.traversals; 33 34 import soot.*; 35 import java.util.*; 36 import soot.jimple.*; 37 import soot.dava.internal.asg.*; 38 import soot.dava.internal.AST.*; 39 import soot.dava.internal.javaRep.*; 40 import soot.dava.toolkits.base.AST.analysis.*; 41 import soot.dava.toolkits.base.AST.structuredAnalysis.*; 42 43 44 48 49 50 public class AllDefinitionsFinder extends DepthFirstAdapter{ 51 ArrayList allDefs = new ArrayList(); 52 53 public AllDefinitionsFinder(){ 54 55 } 56 57 public AllDefinitionsFinder(boolean verbose){ 58 super(verbose); 59 } 60 61 public void inDefinitionStmt(DefinitionStmt s){ 62 allDefs.add(s); 63 } 64 65 66 public List getAllDefs(){ 67 return allDefs; 68 } 69 70 } 71 72 73 74 | Popular Tags |