public class TrivialMethodEscape extends java.lang.Object implements IMethodEscapeAnalysis, INodeEscapeAnalysis
An instance does not escape from method m if the following hold:
| Constructor and Description |
|---|
TrivialMethodEscape(CallGraph cg,
HeapGraph<InstanceKey> hg) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
mayEscape(CGNode allocNode,
int allocPC,
CGNode node) |
boolean |
mayEscape(MethodReference allocMethod,
int allocPC,
MethodReference m) |
public TrivialMethodEscape(CallGraph cg, HeapGraph<InstanceKey> hg)
hg - Heap graph representation of pointer analysiscg - governing call graphpublic boolean mayEscape(MethodReference allocMethod, int allocPC, MethodReference m) throws com.ibm.wala.util.WalaException
mayEscape in interface IMethodEscapeAnalysisallocMethod - a method which holds an allocation siteallocPC - bytecode index of allocation sitem - method in questioncom.ibm.wala.util.WalaExceptionpublic boolean mayEscape(CGNode allocNode, int allocPC, CGNode node) throws com.ibm.wala.util.WalaException
mayEscape in interface INodeEscapeAnalysisallocNode - a CGNode which holds an allocation siteallocPC - bytecode index of allocation sitenode - method in questioncom.ibm.wala.util.WalaException