Package qilin.pta.toolkits.bean
Class ContextSelector
java.lang.Object
qilin.pta.toolkits.bean.ContextSelector
- Direct Known Subclasses:
RepresentativeContextSelector
Compute the contexts of each heap object via OAG.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Pair<ContextElements,AllocNode>, Set<Pair<ContextElements, AllocNode>>> protected Map<AllocNode,Set<ContextElements>> protected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContextSelector(OAG oag) protectedContextSelector(OAG oag, int depth) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAllocation(ContextElements ctx, AllocNode heap, ContextElements newCtx, AllocNode succ) allocatedBy(ContextElements ctx, AllocNode heap) contextsOf(AllocNode heap) protected abstract voidselectContext(OAG oag)
-
Field Details
-
depth
protected int depth -
contextMap
-
allocation
-
-
Constructor Details
-
ContextSelector
-
ContextSelector
-
-
Method Details
-
contextsOf
-
allocatedBy
-
selectContext
-
addAllocation
protected void addAllocation(ContextElements ctx, AllocNode heap, ContextElements newCtx, AllocNode succ)
-