Java 类soot.jimple.toolkits.pointer.RWSet 实例源码

项目:soot-inflow    文件:InfoflowCFG.java   
public Set<?> getReadVariables(SootMethod caller, Stmt inv) {
    RWSet rwSet = sideEffectAnalysis.readSet(caller, inv);
    if (rwSet == null)
        return null;
    HashSet<Object> objSet = new HashSet<Object>(rwSet.getFields());
    objSet.addAll(rwSet.getGlobals());
    return objSet;
}
项目:soot-inflow    文件:InfoflowCFG.java   
public Set<?> getWriteVariables(SootMethod caller, Stmt inv) {
    RWSet rwSet = sideEffectAnalysis.writeSet(caller, inv);
    if (rwSet == null)
        return null;
    HashSet<Object> objSet = new HashSet<Object>(rwSet.getFields());
    objSet.addAll(rwSet.getGlobals());
    return objSet;
}