public static class LockSetAnalysis.LockFlowFact extends FlowFact
Modifier and Type | Field and Description |
---|---|
private LockSetAnalysis.LockMap |
lockMap |
Constructor and Description |
---|
LockFlowFact(LockSetAnalysis.LockMap lockMap) |
Modifier and Type | Method and Description |
---|---|
int |
decrementLockCounter(AbstractLock lock) |
java.util.HashMap<AbstractLock,java.lang.Integer> |
getLockMapCopy() |
java.lang.String |
getString()
Prints the information represented by this object
in a human-readable form.
|
int |
incrementLockCounter(AbstractLock lock) |
boolean |
isEqualTo(FlowFact other)
Returns true if
other is semantically
same as this object. |
FlowFact |
meetWith(FlowFact other,
java.util.Set<Cell> cellSet)
Given an instance of a FlowFact
other , this method should be
overridden to return the meet of the receiver with $other$. |
private LockSetAnalysis.LockMap lockMap
public LockFlowFact(LockSetAnalysis.LockMap lockMap)
public java.util.HashMap<AbstractLock,java.lang.Integer> getLockMapCopy()
public int incrementLockCounter(AbstractLock lock)
public int decrementLockCounter(AbstractLock lock)
public boolean isEqualTo(FlowFact other)
FlowFact
other
is semantically
same as this object.
Note that we do not use equals() methods, since we want to enforce
the subclasses of FlowFact
to define this equality.public java.lang.String getString()
FlowFact
public FlowFact meetWith(FlowFact other, java.util.Set<Cell> cellSet)
FlowFact
other
, this method should be
overridden to return the meet of the receiver with $other$.
An implementation can use the set of symbols (symbolSet
), to make
the meet more precise.
The set symbolSet
, is used to obtain a set of those symbols which
may contribute to the update in data-flow fact of a node.
Note: Make sure that this method returns a new object every time, if
needed.meetWith
in class FlowFact
other
- one of the flowFacts. Can be null.cellSet
- set of cells that may affect the data-flow fact. Symbol.getPhantomSharedSymbol()
should be treated as
the set
of all the shared objects available in this context.other
, with the receiver.