Class SlicerUtil
java.lang.Object
com.ibm.wala.ipa.slicer.SlicerUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
countAllocations
(Collection<Statement> slice, boolean applicationOnly) static int
countAloads
(Collection<Statement> slice) static int
static int
countConditionals
(Collection<Statement> slice) static int
countGetfields
(Collection<Statement> slice, boolean applicationOnly) static int
countGetstatics
(Collection<Statement> slice) static int
countInvokes
(Collection<Statement> slice) static int
countNormals
(Collection<Statement> slice) static int
countPutfields
(Collection<Statement> slice) static int
countPutstatics
(Collection<Statement> slice) static int
countReturns
(Collection<Statement> slice) static int
countThrows
(Collection<Statement> slice, boolean applicationOnly) static void
dumpSlice
(Collection<Statement> slice) static void
dumpSlice
(Collection<Statement> slice, PrintWriter w) static void
dumpSliceToFile
(Collection<Statement> slice, String fileName) static Statement
findCallTo
(CGNode n, String methodName) Find call to method in CGNodestatic Statement
Find the firstSSANewInstruction
in a node
-
Method Details
-
findCallTo
Find call to method in CGNode- Parameters:
n
- the nodemethodName
- name of called method- Returns:
- Statement calling the method
- Throws:
UnimplementedError
- if no such statement found
-
findFirstAllocation
Find the firstSSANewInstruction
in a node- Parameters:
n
- the node- Returns:
- Statement corresponding to first new instruction
- Throws:
UnimplementedError
- if no new instruction is found
-
dumpSlice
-
dumpSlice
-
dumpSliceToFile
public static void dumpSliceToFile(Collection<Statement> slice, String fileName) throws FileNotFoundException - Throws:
FileNotFoundException
-
countAllocations
-
countThrows
-
countAloads
-
countNormals
-
countApplicationNormals
-
countConditionals
-
countInvokes
-
countPutfields
-
countReturns
-
countGetfields
-
countPutstatics
-
countGetstatics
-