public class SlicerUtil
extends java.lang.Object
Statements| Modifier and Type | Method and Description |
|---|---|
static int |
countAllocations(java.util.Collection<Statement> slice) |
static int |
countAloads(java.util.Collection<Statement> slice) |
static int |
countApplicationAllocations(java.util.Collection<Statement> slice) |
static int |
countApplicationNormals(java.util.Collection<Statement> slice) |
static int |
countConditionals(java.util.Collection<Statement> slice) |
static int |
countGetfields(java.util.Collection<Statement> slice) |
static int |
countGetstatics(java.util.Collection<Statement> slice) |
static int |
countInvokes(java.util.Collection<Statement> slice) |
static int |
countNormals(java.util.Collection<Statement> slice) |
static int |
countPutfields(java.util.Collection<Statement> slice) |
static int |
countPutstatics(java.util.Collection<Statement> slice) |
static int |
countReturns(java.util.Collection<Statement> slice) |
static int |
countThrows(java.util.Collection<Statement> slice) |
static void |
dumpSlice(java.util.Collection<Statement> slice) |
static void |
dumpSlice(java.util.Collection<Statement> slice,
java.io.PrintWriter w) |
static void |
dumpSliceToFile(java.util.Collection<Statement> slice,
java.lang.String fileName) |
static Statement |
findCallTo(CGNode n,
java.lang.String methodName)
Find call to method in CGNode
|
static Statement |
findFirstAllocation(CGNode n)
Find the first
SSANewInstruction in a node |
public static Statement findCallTo(CGNode n, java.lang.String methodName)
n - the nodemethodName - name of called methodcom.ibm.wala.util.debug.UnimplementedError - if no such statement foundpublic static Statement findFirstAllocation(CGNode n)
SSANewInstruction in a noden - the nodecom.ibm.wala.util.debug.UnimplementedError - if no new instruction is foundpublic static void dumpSlice(java.util.Collection<Statement> slice)
public static void dumpSlice(java.util.Collection<Statement> slice, java.io.PrintWriter w)
public static void dumpSliceToFile(java.util.Collection<Statement> slice, java.lang.String fileName) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic static int countAllocations(java.util.Collection<Statement> slice)
public static int countApplicationAllocations(java.util.Collection<Statement> slice)
public static int countThrows(java.util.Collection<Statement> slice)
public static int countAloads(java.util.Collection<Statement> slice)
public static int countNormals(java.util.Collection<Statement> slice)
public static int countApplicationNormals(java.util.Collection<Statement> slice)
public static int countConditionals(java.util.Collection<Statement> slice)
public static int countInvokes(java.util.Collection<Statement> slice)
public static int countPutfields(java.util.Collection<Statement> slice)
public static int countReturns(java.util.Collection<Statement> slice)
public static int countGetfields(java.util.Collection<Statement> slice)
public static int countPutstatics(java.util.Collection<Statement> slice)
public static int countGetstatics(java.util.Collection<Statement> slice)