Class PropagationCallGraphBuilder.InstancePutFieldOperator
- java.lang.Object
-
- com.ibm.wala.fixpoint.AbstractOperator<T>
-
- com.ibm.wala.fixpoint.UnaryOperator<PointsToSetVariable>
-
- com.ibm.wala.ipa.callgraph.propagation.PropagationCallGraphBuilder.InstancePutFieldOperator
-
- All Implemented Interfaces:
FixedPointConstants,IPointerOperator
- Enclosing class:
- PropagationCallGraphBuilder
public final class PropagationCallGraphBuilder.InstancePutFieldOperator extends UnaryOperator<PointsToSetVariable> implements IPointerOperator
Update the points-to-set for a field to include a particular instance key.
-
-
Field Summary
Fields Modifier and Type Field Description protected MutableIntSetpriorInstances-
Fields inherited from interface com.ibm.wala.fixpoint.FixedPointConstants
CHANGED, CHANGED_AND_FIXED, CHANGED_MASK, FIXED_MASK, NOT_CHANGED, NOT_CHANGED_AND_FIXED, SIDE_EFFECT_MASK
-
-
Constructor Summary
Constructors Constructor Description InstancePutFieldOperator(IField field, InstanceKey instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)byteevaluate(PointsToSetVariable dummyLHS, PointsToSetVariable var)Simply add the instance to each relevant points-to set.inthashCode()booleanisComplex()Is the operator complex; i.e., might it give rise to new constraints?StringtoString()-
Methods inherited from class com.ibm.wala.fixpoint.UnaryOperator
evaluate, isIdentity, makeEquation
-
-
-
-
Field Detail
-
priorInstances
protected final MutableIntSet priorInstances
-
-
Constructor Detail
-
InstancePutFieldOperator
public InstancePutFieldOperator(IField field, InstanceKey instance)
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toStringin classAbstractOperator<PointsToSetVariable>
-
evaluate
public byte evaluate(PointsToSetVariable dummyLHS, PointsToSetVariable var)
Simply add the instance to each relevant points-to set.- Specified by:
evaluatein classUnaryOperator<PointsToSetVariable>- Returns:
- true if the lhs value changes. false otherwise.
-
hashCode
public int hashCode()
- Specified by:
hashCodein classAbstractOperator<PointsToSetVariable>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classAbstractOperator<PointsToSetVariable>
-
isComplex
public boolean isComplex()
Description copied from interface:IPointerOperatorIs the operator complex; i.e., might it give rise to new constraints?- Specified by:
isComplexin interfaceIPointerOperator
-
-